Forum: Radiant CMS Extension development questions

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
8256939170b23d537b83640906c9e19a?d=identicon&s=25 Peter Berkenbosch (Guest)
on 2007-07-14 23:12
(Received via mailing list)
Some questions about extensions that I hope someone can anwser..

1. Do I have acces to something like the 'current' page context?
2. Does anyone know of a sample extensions with some extensive testing ?

Thanks !

Peter Berkenbosch
8256939170b23d537b83640906c9e19a?d=identicon&s=25 Peter Berkenbosch (Guest)
on 2007-07-16 20:51
(Received via mailing list)
Anwering my own question,

the current page if accesable through:

tag.locals.page

Still searching for some information about testing tags and extensions.

Peter.

On 7/14/07, Peter Berkenbosch <peter.berkenbosch@gmail.com> wrote:
>
> Some questions about extensions that I hope someone can anwser..
>
> 1. Do I have acces to something like the 'current' page context?
> 2. Does anyone know of a sample extensions with some extensive testing ?
>
> Thanks !
>
> Peter Berkenbosch




--
met vriendelijke groet,

Peter Berkenbosch
8802b1fa1b53e2197beea9454244f847?d=identicon&s=25 Sean Cribbs (Guest)
on 2007-07-16 21:01
(Received via mailing list)
There are also two levels of 'context'.

1) tag.locals.page gives you the most immediately accessible page, which
is the page inside iterations like <r:children:each> or 'jumps' like
<r:find>
2) tag.globals.actual_page gives you the real page being rendered,
disregarding any changes made via iterations or the like

If you want assistance testing tag output, look at the unit test for
StandardTags.  It has great examples.

Sean
8256939170b23d537b83640906c9e19a?d=identicon&s=25 Peter Berkenbosch (Guest)
on 2007-07-16 21:03
(Received via mailing list)
Thanks Sean! I will dive right in.. :)

Peter.

On 7/16/07, Sean Cribbs <seancribbs@gmail.com> wrote:
> StandardTags.  It has great examples.
> > Still searching for some information about testing tags and extensions.
> >>
> _______________________________________________
> Radiant mailing list
> Post:   Radiant@lists.radiantcms.org
> Search: http://radiantcms.org/mailing-list/search/
> Site:   http://lists.radiantcms.org/mailman/listinfo/radiant
>



--
met vriendelijke groet,

Peter Berkenbosch
This topic is locked and can not be replied to.