phiRedirect 1.1.0
Use this snippet to redirect users to the document you'd like to show.
This is often useful, for example, in the case of emulating the behavior of traditional Web sites' folders.
If no document is found, this snippet redirects users to error page.
Installation Instructions
e.g. Redirect to document(ID is 1)
[[phiRedirect? &id=`1`]]
e.g. Redirect to the parent of current document.
[[phiRedirect? &to=`parent`]]
e.g. Redirect to the first child of current folder document.
[[phiRedirect? &to=`child`]]
e.g. Redirect to the parent of document(ID is 5).
[[phiRedirect? &to=`parent` &id=`5`]]
e.g. Redirect to the first child of the folder document(ID is 6).
[[phiRedirect? &to=`child` &id=`6`]]

This works!!! I have used the ID attribute to redirect to page '12' in my documents.
No comments:
Post a Comment