Page 1 of 1

Webpage without menu

Posted: Thu Jul 03, 2014 10:17 pm
by roze
I want to use Some webpages without header and menu to use in a XIBO presentation.

My idea is to make Some CMSimple pages and don't show them in the menu buy I kan link them in my XIBO presentation.

How do I do I do That?

Re: Webpage without menu

Posted: Thu Jul 03, 2014 10:43 pm
by svasti
simply remove the <?php echo toc();?> or <?php echo li();?>

Re: Webpage without menu

Posted: Fri Jul 04, 2014 7:12 am
by roze
In the template? Or can I do this for only one or more pages and not the whole website??

Re: Webpage without menu

Posted: Fri Jul 04, 2014 10:30 am
by cmb
Yes, that changes have to be made in the template. You can use the technique for page specific adjustments, or a variant thereof:

Code: Select all

<?php if (!in_array($su, array('Name_of_one_page', 'Name_of_another_page'))): ?>
    <?php echo toc();?>
<?php endif;?>
Replace 'Name_of_one_page', 'Name_of_another_page' with the pages that should not display the menu. Maybe you have to put some more of the HTML in this "bracket".

PS: Or you can use page specific templates.

Re: Webpage without menu

Posted: Fri Jul 04, 2014 10:55 am
by Tata
I also use CMSimple pages for presentations and have the menu hidden for the public, but still accessible for me while editting.

Code: Select all

     <div class="container">
     <?php if($adm==""){echo "";} else {echo toc();}?>
          <div class="tpl_main">
               <div class="content">
                    <?php echo editmenu();?>
                    <?php echo content();?>
...


Only the admin and only if logged in can see the navigation. So any editting is simple and comfortable.

Re: Webpage without menu

Posted: Fri Jul 04, 2014 11:03 am
by roze
Simple!

Thanks for your help!