Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By larsp777 on
Hi! I am new to Drupal.
We have two variants of a page, one for our "normal" site and one for mobile.
The administrator chooses if a picture should be displayed to the right or left of a text.
This change doesn't happen in the mobile variant.
Is this possible?
Comments
Yes.
Yes.
Great, but how?
Great, but how?
Please help if you have any idea.
It depends on how the site is
It depends on how the site is built.
Alright, but any pointers!
Alright, but any pointers!
Can you share some URLs?
Can you share some URLs?
============================
Resonetrics: Better Tools for Building Brands
http://resonetrics.com
http://technologyformarketers.com
http://kittenassociates.org
http://www.linkedin.com/in/sammooreatresonetrics
Well, the site is www
Well, the site is www.byggahus.se and the mobl.byggahus.se (I´m Swedish)
You can get to the mobilesite by pressing "mobilversion" at the bottom.
When changes are made to the "ordinary" site they should also automaticly change in the mobilesite.
As I understand it we have a page /front and that page has a "Variant" that is chosen depending of what template you use.
I am new to Drupal så forgive me if it isn´t clear.
I have been reading about sub themes. Could that be a way to go. If the mobilesite inherit from the "normal" site?
Well it depends on how much
Well it depends on how much re-theming you feel like doing.
A very common approach now is to create a single theme for boh environments (mobile and desktop), and make it responsive - so that the layout and perhaps even then content changes as the viewport gets smaller or larger.
This approach makes content management a lot easier in the sense that you only have once instance of each photo or other element. It also =gets you out of the business of detecting devices - all you really have to care about it viewport size.
Pursuing this would mean rewriting your theme pretty significantly.
============================
Resonetrics: Better Tools for Building Brands
http://resonetrics.com
http://technologyformarketers.com
http://kittenassociates.org
http://www.linkedin.com/in/sammooreatresonetrics
Ok, got it. Thanks!
Ok, got it. Thanks!