Replace anchor link url in published page

23 views
Skip to first unread message

Ramya Murthy

unread,
Sep 21, 2011, 11:42:08 AM9/21/11
to reddot-c...@googlegroups.com
Hi,

Trying to work out the following code:

<a href="<reddot:cms><if><query valuea="Context:CurrentRenderMode" operator="==" valueb="Int:2"><htmltext><%!! Escape:Text(<%anc_link%>).Replace(.htm,.html) !!%></htmltext></query></if></reddot:cms>">home</a>


I require to replace page extension in the anchor link url.


Any suggestions ??

Thanks,
Ramya

Tony Gayter

unread,
Sep 21, 2011, 11:45:29 AM9/21/11
to reddot-c...@googlegroups.com
Why dont you just change the default filename output so it outputs .html automatically?

Markus Giesen

unread,
Sep 29, 2011, 12:23:17 AM9/29/11
to RedDot CMS Users
Where's the challenge in that? ;)
Reply all
Reply to author
Forward
0 new messages