Hi, I would like to include a php file within some of my content pages that have been created via the Page Editor. I have tried using the following notation and have loaded the file in the root directory but it still is not displaying: <?php include("custom_how.php"); ?> Please help.
The contents of created via the page editor are stored in a database and therefor are not parsed so no code exucution takes place on the content of the extra pages. You will have to manually create pages/template to have embeded code in them.
Another method would be to use smarty in the layout to check for the page that you want to include the code for. Examples: Code: {if $title="mypage"} <?php include("custom_how.php"); ?> {/if} Code: {if $templatepages.pageID="6"} <?php include("custom_how.php"); ?> {/if} Use {debug} in your layout page to find the correct variable that you are going to use for the page(s).