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

Comparing version 7 and version 6

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.

p((. 

 @Example Page@

h3. Url



 @@

renders the page url without the hostname and protocol.

p((. 

 @/path/to/example-page/@

h3. Slug



 @@

renders the page slug

p((. 

 @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

p((. 

 @ link with text @



 @ link to anchor with text @

link to a specified anchor within the page

p((. 

 @ link to anchor with text @



 @@

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

p((. 

 @ page_title @

h2. Context

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

h3. Parent



 @ @

p((. 

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

h3. Children



 @ @

p((. 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:



 @@ 
@ @ p((. @Example Page@
@Child 1@
@Child 2@
@Child 3@
Valid options are: * @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