[All Adaptavist Apps]

Page tree

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

{use-layout} macro

(info) Requires Theme Builder 3 or above

This macro allows you to automatically change the layout used for a specific page, optionally latching that layout for the rest of the user's session.

(warning) page under construction

Hints and Tips

You can use this macro to create URLs for mobile phone users, etc., that will automatically select an appropriate layout when accessed.

First, create a page in a public space and give it a short title, for example: "Mobiles".

And then latch the desired layout (eg. a layout with id "mobile" that's designed for small screen mobile phones) with the following:

{use-layout:mobile|latch=true}

Then, simply hand out the URL to the page called "Mobile" - you can get a Tiny URL from the page information view of that page or by placing the page-info macro on that page:

{page-info:tinyurl}

You can either display a welcome message on that page, or alternatively redirect to another page using the redirect macro:

{redirect:Home}
  • No labels