Forum for discussing general topics related to Couch.
3 posts Page 1 of 1
I have a photo gallery page called gallery.php and in it, it already requires these lines of code for the photo gallery to work, but they are conflicting with the couchCMS lines of code:

<?php
include('HezeGallery2/usage/DisplayControl.php');
?>

<?php $heze->HezecomPortfolioGallery('gallery','col-md-3','col-sm-4','col-xs-6');?>

I tried using <cms:ignore> but it doesn't work on these. Any idea how I can have the couchCMS code lines and these code lines exist in beautiful harmony? :mrgreen:
Firstly, the correct php code would be
Code: Select all
<?php include 'HezeGallery/usage/DisplayControl.php';?>


Whether or not this simple change would fix your problem I don't know.

Alternatively, you could instead use Couch's 'embed' function: https://docs.couchcms.com/tags-reference/embed.html

Secondly, you could try using Couch's PHP tags "<cms:php></cms:php>" to enclose your script.

Am I correct in thinking that your code is at https://utopia.com.gr/ ??
@thedigisist, please take a look at the following post -
viewtopic.php?f=4&t=10627#p26647

Hope it helps.
3 posts Page 1 of 1
cron