You can add an anchor element to your masterpage and check in the navigation
template if this anchor is linked to any page.
If it is, write the anchor instead of the url of the current page into your
navigation template.
Works much better than using JavaScript or a meta refresh.
And if you check the render mode too, you can give the editors access to the
page in smartedit if the redirect is set.
example code:
<if>
<query
valuea="Context:CurrentPage.Elements.GetElement(anc_redirect).GetHtml()"
operator="==" valueb="Escape:EmptyString">
<htmltext>
<a href="<%!! Context:CurrentIndex.GetUrl() !!%>"><%!!
Escape:HtmlEncode(Context:CurrentPage.Headline) !!%></a>
</htmltext>
</query>
<query type="else">
<if>
<query valuea="Context:CurrentRenderMode" operator="=="
valueb="Int:1">
<htmltext>
<a href="<%!! Context:CurrentIndex.GetUrl() !!%>"><%!!
Escape:HtmlEncode(Context:CurrentPage.Headline) !!%></a>
</htmltext>
</query>
<query type="else">
<htmltext>
<a href="<%!!
Context:CurrentPage.Elements.GetElement(anc_redirect).GetHtml() !!%>"><%!!
Escape:HtmlEncode(Context:CurrentPage.Headline) !!%></a>
</htmltext>
</query>
</if>
</query>
</if>
--
You received this message because you are subscribed to the Google Groups
"RedDot CMS Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/reddot-cms-users?hl=en.