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
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
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
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs