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

Comparing version 8 and version 7

h2. 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":#context, below)

h3. Title

 @@

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

 @Example Page@

h3. Url

 @@

renders the page url without the hostname and protocol.

 @/path/to/example-page/@

h3. Slug

 @@

renders the page slug

 @example-page@

h3. Author

 @@

renders the author of the page


h3. 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 @

h2. Context

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

h3. Parent

 @ @

 

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

h3. 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:

 @@ 
@ @ @Example Page@
@Child 1@
@Child 2@
@Child 3@
Valid options are: * @limit="n"@ limit="n" -- iterate through a maximum of n children * @offset="n"@ -- start at the n^th^ child * @order="asc" | "desc"@ -- in ascending (default) or descending order * @by="title"@ -- sorted by title (default is published date)

Back to Page