RenderTags - get pageguid via RT?

78 views
Skip to first unread message

Markus Giesen

unread,
Jul 5, 2011, 11:16:17 PM7/5/11
to reddot-c...@googlegroups.com

Hi everyone, 

Do you know if I can get the pageguid via render tags?

Any help is appreciated! Cheers, Markus


kimdezen

unread,
Jul 5, 2011, 11:31:13 PM7/5/11
to RedDot CMS Users

<%!! Context:CurrentPage.Id !!%> - strip the dashes and convert to
uppercase

am i missing something - or do you mean the ID of the page (not
guid)?
check out: http://groups.google.com/group/reddot-cms-users/browse_thread/thread/7defb1443c998c0b/dbf821f8ca679626

Jian Huang

unread,
Jul 6, 2011, 9:45:10 AM7/6/11
to RedDot CMS Users
strip the dashes and convert to uppercase, challenge accepted.

<%!! Context:CurrentPage.Id.ToString().ToUpper().Replace(-,) !!%>

On Jul 5, 11:31 pm, kimdezen <dasw...@gmail.com> wrote:
> <%!! Context:CurrentPage.Id !!%> - strip the dashes and convert to
> uppercase
>
> am i missing something - or do you mean the ID of the page (not
> guid)?
> check out:http://groups.google.com/group/reddot-cms-users/browse_thread/thread/...
Message has been deleted

kimdezen

unread,
Jul 6, 2011, 9:44:57 PM7/6/11
to RedDot CMS Users
You the man Jian!

Markus Giesen

unread,
Jul 7, 2011, 4:50:41 AM7/7/11
to RedDot CMS Users
was about to update the post with this, thanks guys!!

Jian Huang

unread,
Jul 7, 2011, 9:16:15 AM7/7/11
to RedDot CMS Users
Thanks guys.

Actually, Jeff Stine replied to this post and provided a shorter
method.

<%!! Context:CurrentPage.Id.ToString(N).ToUpper() !!%>

It is also mentioned that page ID (number) is available in 10.1 via

<%!! Context:CurrentPage.PageID !!%>

But I can't get the second rendertag to work.

-Jian

Jeff Stine

unread,
Jul 7, 2011, 10:35:43 AM7/7/11
to RedDot CMS Users
Yes, sorry I retracted the reply after I realized that the second tag
does not work. The property exists but apparently is not exposed to
rendering or bugged.

Jian Huang

unread,
Jul 7, 2011, 11:33:43 AM7/7/11
to RedDot CMS Users
Hi Jeff,

Nevertheless, hats off to the shorter rendertag solution. I am adding
it to my code box.

-Jian
Reply all
Reply to author
Forward
0 new messages