Page 1 of 1

[Solved]Template for mobile site version

Posted: Mon Oct 07, 2013 3:32 pm
by jasnick
Using 1.11.8

Am trying a simplified version of an exisiting site for use on mobile phones.

Am using this in the mobile template for the nav:

Code: Select all

<div class="nav">

    {menu number_of_levels="1" template="minimal_menu.tpl" excludeprefix="about-us,photo-gallery"}

</div>
  
However it is still showing in the menu the pages I don't want to use.

Is this the correct way to do this?

Thanks

Re: Template for mobile site version

Posted: Tue Oct 08, 2013 6:17 pm
by paulbaker
I just tested a 2-page excludeprefix (on a 1.11.7 site) and it worked OK for me. Perhaps check that about-us & photo-gallery are valid page aliases? And then try excluding one page at a time?

Re: Template for mobile site version

Posted: Tue Oct 08, 2013 11:43 pm
by jasnick
Thanks Paul
paulbaker wrote: Perhaps check that about-us & photo-gallery are valid page aliases?
That was the first thing I checked ;D
paulbaker wrote:And then try excluding one page at a time?
I'll try that next.

Thanks!

Re: Template for mobile site version

Posted: Sun Oct 13, 2013 6:50 am
by jasnick
Have decided not to go with a separate template.