Hi, don't really get, what you want to achieve and what your understanding of clean urls is. What I see is that you replace the file extension "htm" with nothing. Could you possibly a) give us more examples what you you want to achieve and WHY you need to publish files without any extension?
Cheers, Manuel On Tuesday, July 9, 2013 1:33:49 PM UTC+2, [email protected] wrote: > > My first post so please bear with me: > We have the following code used to present a list of URLs: > <reddot:cms> > <foreach > itemname="childPages" > object="Context:Indexes.GetIndexByPageId(Guid:021743AA8509473C9615A4BA5C2BAC32).SubIndexes" > > countername="pageCounter"> > <htmltext><dd><a > href="<%!! Store:childPages.GetUrl(Bool:True) !!%>"><%!! > Store:childPages.Headline !!%></a></dd></htmltext> > </foreach> > </reddot:cms> > > and want to return clean urls from <%!! > Store:childPages.GetUrl(Bool:True) !!%> so > http://www.mysite.com/thispage.htm is published as > http://www.mysite.com/thispage > > I have tried: > <reddot:cms> > <foreach > itemname="childPages" > object="Context:Indexes.GetIndexByPageId(Guid:4595E6AE30D243E6AB11DAE0553A90B7).SubIndexes" > > countername="pageCounter"> > <htmltext><dd> > <% > DocSectionURL = "<%!! Store:childPages.GetUrl(Bool:True)!!%>" > DocNewSectionURL = Replace(DocSectionURL,".htm","") > %> > <a href="<% response.write(DocNewSectionURL) %>"><%!! > Store:childPages.Headline !!%></a></dd></htmltext> > </foreach> > </reddot:cms> > but http://www.mysite.com/thispage.htm is still returned. Could anyone > help suggest the best way to try to do this please? I have manged to use a > similar method with placeholders but with this RQL it does not work. > Many thanks in advance. > > -- You received this message because you are subscribed to the Google Groups "RedDot CMS Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/reddot-cms-users. For more options, visit https://groups.google.com/groups/opt_out.
