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 Ruby
code to be executed in a to be defined runtime context. In your case this
would allow to do something like:
<r:ruby>
tag.locals.page.id.to_s
</r:ruby>
The idea, as you comment, is to avoid defining a new tag
(correspondingly a new extension) for some "simple but non radiant standard
behavior".
Definitively, such a tag would be great.
/AITOR
On 7/25/07, Deniz Turkmen <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> 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.
>
> Deniz
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> Radiant mailing list
> Post: [email protected]
> Search: http://radiantcms.org/mailing-list/search/
> Site: http://lists.radiantcms.org/mailman/listinfo/radiant
>
_______________________________________________
Radiant mailing list
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant