I'm creating a website and i include a sort of 'yelow page' script on a page:
http://infobergterblijtviltgeulhem.nl/?Bedrijven
To include this script the builder telling me to add this to the top of the template:
Code: Select all
<?php
ob_start();
?>
Code: Select all
<?php include '/home/ondernemer/domains/infobergterblijtviltgeulhem.nl/public_html/bedrijven/app/views/pjLayouts/pjActionListings.php'; ?>
Code: Select all
{YP_LISTINGS}
http://infobergterblijtviltgeulhem.nl/?Bedrijven
I want this script be loaded only on this page: ?Bedrijven
So i created 2 templates. 1 with the script for the page ?Bedrijven, and 1 template without the script for all other pages.
The template with the script included i use as default template, the other template without the script i use for each page separately.
Now, when i click on a company to read more about it, the script should show more information but instead of that it points to the index of cmsimple (the home page) and is showing nothing else then the homepage.
Just for testing i did use the template WITH the script include also for the Homepage so that you can see the result.
But why are we going back to the index when i click on more info about a company ??
Strange thing is that when i log in to cmsimple and do testing, then all works fine. I click on 'Read more (lees meer)' and the info is showing. But soon as i log out it points to the homepage.
Any idea how to solve this??? No..... i do not want to use an iframe
Thanks already!