If all of your pages have the same layout at any time, make sure all
descendant pages have their layout set to <inherit> and then your
extension could change the layout on the root page.
However, it would not be trivial to do this on a per-user basis. Have
you considered something like a combination of Javascript and CSS that
lets your users switch layouts?
Sean
Mamed Mamedov wrote:
Hi everybody!
I have a little question: how can I change page's layout from within my
extension?
Problem is, that I have 2 different page layouts for my site: [ full-version
and light-version ].
I want to write a mini-extension to switch between designs of my site throw
hitting: /design/set/full and /design/set/light or /design/reset
And I'am saving current design variable in current user's session.
And now, just need to change current page's layout on the fly accordingly to
session value.
________________
Regards,
Mamed Mamedov
_______________________________________________
Radiant mailing list
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant
_______________________________________________
Radiant mailing list
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant