[Solved]Template for mobile site version

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
jasnick
Power Poster
Power Poster
Posts: 695
Joined: Sat Jan 15, 2011 8:36 am

[Solved]Template for mobile site version

Post 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
Last edited by jasnick on Sun Oct 13, 2013 6:50 am, edited 1 time in total.
User avatar
paulbaker
Dev Team Member
Dev Team Member
Posts: 1465
Joined: Sat Apr 18, 2009 10:09 pm
Contact:

Re: Template for mobile site version

Post 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?
jasnick
Power Poster
Power Poster
Posts: 695
Joined: Sat Jan 15, 2011 8:36 am

Re: Template for mobile site version

Post 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!
jasnick
Power Poster
Power Poster
Posts: 695
Joined: Sat Jan 15, 2011 8:36 am

Re: Template for mobile site version

Post by jasnick »

Have decided not to go with a separate template.
Post Reply

Return to “Layout and Design (CSS & HTML)”