Sign In
Start Page | Recent Changes | All Pages | Orphan Pages | Junebug Help

Standard Tags

Attributes

The attributes below can be used to render properties of the current context. That may be the page currently being rendered, or some specified relation (see Context, below)

Title

<code><r:title /></code>

tag is replaced by the title defined for the current page.

Example Page

Url

renders the page url without the hostname and protocol.

/path/to/example-page/

Slug

renders the page slug

example-page

Author

renders the author of the page

Link

produces a hypertext link with the page title as the link text.

 page_title 
link with text

allows you to specify the link text

 link with text 
link to anchor with text

link to a specified anchor within the page

 link to anchor with text 

class, id or other tag attributes can be added to control the tag

 page_title 

Context

By default, any attributes refer to the current page being rendered. However, this context can be modified.

Parent

All attributes within scope now refer to the parent of the page being rendered.

Children

Content of the scope is repeated for each immediate child of the current context. All attributes are with respect to the current context. For example:

<code><r:link /></code>
<r:children:each> <r:link /> </r:children:each>
<code><a href="/path/to/example-page/">Example Page</a></code>
<a href="/path/to/example-page/child-1/">Child 1</a>
<a href="/path/to/example-page/child-2/">Child 2</a>
<a href="/path/to/example-page/child-3/">Child 3</a>
Valid options are:
  • limit="n"—iterate through a maximum of n children
  • offset="n"—start at the nth child
  • order="asc" | "desc"—in ascending (default) or descending order
  • by="title"—sorted by title (default is published date)

Version 11 | Other versions: « older newer » current versions
Page last edited by cowlibob on October 18, 2007 12:38 PM (diff)