Forum: Radiant CMS How to get current page ID?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
3e1986f8041b1b8391b4ab95f5bc378c?d=identicon&s=25 Deniz Turkmen (denoxis)
on 2007-07-25 02:31

I need to put the current page ID somewhere in my radiant layout. There
is no such documented tag. Is there any trick to do that other than
defining a new tag?

I appreciate your help.

9063cd7bc2f7308c7e6b0e5ea2eeb347?d=identicon&s=25 Aitor Garay-Romero (Guest)
on 2007-07-26 00:46
(Received via mailing list)
I suppose that you refer to the ID of the page in the database.  In this
case, AFAIK there is no direct way.

   For this case and many more i think that it would be great to have
something like a <r:erb> or <r:ruby> standard tag that allows arbitrary
code to be executed in a to be defined runtime context.  In your case
would allow to do something like:


    The idea, as you comment, is to avoid defining a new tag
(correspondingly a new extension) for some "simple but non radiant

    Definitively, such a tag would be great.

This topic is locked and can not be replied to.