I have a sub menu in the content section like documentation under support - pulscms.com. When I enter a litte php-script to highlight the selected submenu this doesn’t work and the site will not show up at all. Any suggestions?
Thx for the help… but still I can’t use the code in the content section.
I have a top navigation, there the php script works fine!
I added the brackets - thx for this
I have a block containing the navigation. On the top I reference with <?php include("content/blocks/navigation/oben.txt"); ?>
In the content section I reference with: {{block:navigation/produkte}} that makes the error, when I add the php function in the navigation like: <li><a class="<?php isactive($path,''); ?>" href="<?php echo $path; ?>/produkte/webhosting">Webhosting</a></li>
As the result of the above code in the navigation (in content section) the page will look like this:
`
If i delete my php-code, the page will show up normaly…
class="<?php isactive($path,''); ?>" <-- deleted in <li><a class="<?php isactive($path,''); ?> href="<?php echo $path; ?>/produkte/webhosting">Webhosting</a></li>
Hello,
I just tested my homepage without pulsecms. I copied all blocks in the layout.php. After that I tested the page. No error, the page shows up. It seems that that in the content section in pulsecms it is not a good idea to have a php-script!
I suppose that for content section you mean the folder content.
Inside that folder, I would tend to insert PHP code only in super-blocks.
No in blocks, no in pages and no in blog posts.
@arbirkner
Why is your php.txt included outside the HEAD-section and also outside the BODY-section?
Have your tried applying this to the default ACME site?
If it does not work in there, you can simply share the files.