experimenteandi I have a 3 column layout for my internet pages. On the left is the navigation menu. In the middle is the content and on the right you should see additional links to the content. With <div class="sidebarright"> <?php tpl_include_page(strtr(noNS($ID),'_',' ')."_links"); ?> </div> i am showing e.g. for the "Bookpage" the additional page "Bookpage_links" on the third column. How is it possible to check the existance of the page "Bookpage_links" to prevent the output of an empty page ?
experimenteandi <?php if (page_exists(strtr(noNS($ID),'_',' ')."_links")) { echo "<div class=\"sidebarright\">"; echo "<h2>Weitere Links zu dieser Seite</h2>"; tpl_include_page(strtr(noNS($ID),'_',' ')."_links"); echo "</div>"; } else { /* do nothing */ } ?>