Extension development questions


#1

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 B.


#2

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 B. removed_email_address@domain.invalid 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 B.


met vriendelijke groet,

Peter B.


#3

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


#4

Thanks Sean! I will dive right in… :slight_smile:

Peter.

On 7/16/07, Sean C. removed_email_address@domain.invalid wrote:

StandardTags. It has great examples.

Still searching for some information about testing tags and extensions.


Radiant mailing list
Post: removed_email_address@domain.invalid
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant


met vriendelijke groet,

Peter B.