Hello! I'm trying to use the include(); function in the page codeblock, but I'm getting a php error "failed to open stream: No such file or directory". The same code works fine if I type it directly in pages.php. Is there something I'm missing? Thanks!
``
I could use an if statement in pages.php to print the included code only in my desired page, but I think that's nasty coding.
You will probably have to use the fully qualified path to the script. Includes like you show are relative to the "current" folder. For codeblocks it is problematical to know what the current folder might be.
There are defines for the various Zenphoto folders. See golbal-definitions.php.