Composr Tutorial: Advanced site structure and flow
Written by Chris Graham (ocProducts)
This tutorial contains some advanced information about managing the structure and flow of a Composr website.The tutorial isn't ordered in any particular way – it is a series of separate pieces of guidance.
Controlling the flow through add screens)
You may want to provide a link to an add screen then redirect the user somewhere else after they've finished. i.e. don't show them the default "what would you like to do next?" screen, send them somewhere specific.You can do this via the standard redirect parameter, which contains the URL to redirect the user to after an action is performed.
For example, consider this page-link we may have placed on a menu:
Code
cms:cms_news:add
Code
cms:cms_news:add:redirect={$PAGE_LINK,site:news_thankyou}
Code
cms:cms_news:add:redirect={$SELF_URL}
For example, if we have a template that has a URL passed into it, like say:
We could change it to:
See also
Feedback
Please rate this tutorial:
Have a suggestion? Report an issue on the tracker.