Hi Curtis,
Basically, you want <%= Request.Url %> to be on the page after publish.
You can either have preexecute to do <% Respnse.Write("<") %><%
Respnse.Write("%") %>
or just use rendertag instead of preexecute
<reddot:cms>
<if>
<query valuea="<%OptOGURL%>" operator="==" valueb="override">
<htmltext>
<meta property="og:url" content="<%= Request.Url %>" />
</htmltext>
</query>
<query type="else">
<htmltext>
<meta property="og:url"
content="http://www.snhu.edu<%nfoPage_URL%>" />
</htmltext>
</query>
</if>
</reddot:cms>
On Tuesday, August 27, 2013 3:51:55 PM UTC-4, Curtis Kimball wrote:
>
> I have the following code in a content template but The requestURl won't
> work.
>
> If i use "< and >" it breaks the page
> if i use "< and >" it publishes like that and doesn't work
> if I use "⟨ and ⟩" it also breaks
>
> <!IoRangePreExecute>
> <% If "<%OptOGURL%>"="override" Then %>
> <meta property="og:url" content="<%= Request.Url %>" />
> <% Else %>
> <meta property="og:url" content="http://www.snhu.edu<%nfoPage_URL%>"
> />
> <% End If %>
> <!/IoRangePreExecute>
>
> then I tried
>
> <!IoRangePreExecute>
> <% If "<%OptOGURL%>"="override" Then %>
> <meta property="og:url" content="<%= Request.Url %>" />
> <% Else %>
> <meta property="og:url" content="http://www.snhu.edu<%nfoPage_URL%>"
> />
> <% End If %>
> <!/IoRangePreExecute>
>
> I had this code working previously but it wasn't in pre execute block
> marks.
> <meta property="og:url" content="<%= Request.Url %>" />
>
> what can I use to get the end result to work?
> Is there something I need to do to get encoding and decoding to work a
> certain way in pre execute?
>
> curtis
>
> Please consider the environment before printing this e-mail.
>
--
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.