Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

All other Modules /

Discuss all other Modules here.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Styling pages using the mobile module


Go to End


3 Posts   1203 Views

Avatar
Tigerlilly

Community Member, 19 Posts

29 October 2012 at 3:06pm

Hi there

I have installed the mobile module and it is working really well, I am just confused as to how I would create individual templates for the pages when they are shown on the mobile? It seems it just reads the page template and not the extended pages. For example the home page on the full site is using the homepage.ss template but if I add homepage.ss to my mobile theme it doesn't work.

Please can somebody help me as I have quite a few different page templates to accommodate.

Thanks in advance
Denise

Avatar
Willr

Forum Moderator, 5523 Posts

2 November 2012 at 11:37am

The mobile module if I'm not mistaken allows you to use a different theme directory for mobile. So you would have themes/yourtheme for desktop and themes/mobilethemename for mobile. Make sure the configuration is set up in the settings tab for mobile to use the mobilethemename.

After adding any new templates much sure you've ?flush=1.

Avatar
Tigerlilly

Community Member, 19 Posts

2 November 2012 at 1:32pm

Gosh I did try that but was obviously cacheing!! thanks so much for your response it seems to be working now.

Cheers
Denise