trusty-cms 5.0.2 → 5.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -55,15 +55,6 @@ en:
55
55
  <pre><code><r:aggregate paths=\"/section1; /section2; /section3\"> ... </r:aggregate></code></pre>"
56
56
  author: "Renders the name of the author of the current page."
57
57
  breadcrumb: "Renders the @breadcrumb@ attribute of the current page."
58
- breadcrumbs: "Renders a trail of breadcrumbs to the current page. The separator attribute
59
- specifies the HTML fragment that is inserted between each of the breadcrumbs. By
60
- default it is set to @>@. The boolean @nolinks@ attribute can be specified to render
61
- breadcrumbs in plain text, without any links (useful when generating title tag).
62
- Set the boolean @noself@ attribute to omit the present page (useful in page headers).
63
-
64
- *Usage:*
65
-
66
- <pre><code><r:breadcrumbs [separator=\"separator_string\"] [nolinks=\"true\"] [noself=\"true\"]/></code></pre>"
67
58
  children-count: "Renders the total number of children."
68
59
  children-each-child: "Page attribute tags inside of this tag refer to the current child. This is occasionally
69
60
  useful if you are inside of another tag (like &lt;r:find&gt;) and need to refer back to the
@@ -191,17 +182,6 @@ en:
191
182
  *Usage:*
192
183
 
193
184
  <pre><code><r:content [part=\"part_name\"] [inherit=\"true|false\"] [contextual=\"true|false\"] /></code></pre>"
194
- cycle: "Renders a counter value or one of the values given based on a global cycle counter.
195
-
196
- To get a numeric counter just use the tag, or specify a start value with @start@.
197
- Use the @reset@ attribute to reset the cycle to the beginning. Using @reset@ on a
198
- numbered cycle will begin at 0. Use the @name@ attribute to track multiple cycles;
199
- the default is @cycle@.
200
-
201
- *Usage:*
202
-
203
- <pre><code><r:cycle [values=\"first, second, third\"] [reset=\"true|false\"] [name=\"cycle\"] [start=\"second\"] /></code></pre>
204
- <pre><code><r:cycle start=\"3\" /></code></pre>"
205
185
  date: "Renders the date based on the current page (by default when it was published or created).
206
186
  The format attribute uses the same formating codes used by the Ruby @strftime@ function. By
207
187
  default it's set to @&#37;A, &#37;B &#37;d, &#37;Y@. The @for@ attribute selects which date to render. Valid
@@ -216,11 +196,7 @@ en:
216
196
  *Usage:*
217
197
 
218
198
  <pre><code><r:escape_html>...</r:escape_html></code></pre>"
219
- field: "Renders the content of the field given in the @name@ attribute.
220
-
221
- *Usage:*
222
199
 
223
- <pre><code><r:field name=\"Keywords\" /></code></pre>"
224
200
  find: "Inside this tag all page related tags refer to the page found at the @path@ attribute.
225
201
  @path@s may be relative or absolute paths.
226
202
 
@@ -243,13 +219,7 @@ en:
243
219
  *Usage:*
244
220
 
245
221
  <pre><code><r:hide>...</r:hide></code></pre>"
246
- if_ancestor_or_self: "Renders the contained elements if the current contextual page is either the actual page or one of its parents.
247
-
248
- This is typically used inside another tag (like &lt;r:children:each&gt;) to add conditional mark-up if the child element is or descends from the current page.
249
-
250
- *Usage:*
251
222
 
252
- <pre><code><r:if_ancestor_or_self>...</r:if_ancestor_or_self></code></pre>"
253
223
  if_children: "Renders the contained elements only if the current contextual page has one or
254
224
  more child pages. The @status@ attribute limits the status of found child pages
255
225
  to the given status, the default is @\"published\"@. @status=\"all\"@ includes all
@@ -270,19 +240,7 @@ en:
270
240
  *Usage:*
271
241
 
272
242
  <pre><code><r:if_content [part=\"part_name, other_part\"] [inherit=\"true\"] [find=\"any\"]>...</r:if_content></code></pre>"
273
- if_dev: "Renders the containing elements only if TrustyCms in is development mode.
274
-
275
- *Usage:*
276
-
277
- <pre><code><r:if_dev>...</r:if_dev></code></pre>"
278
- if_field: "Renders the contained elements if the field given in the @name@ attribute
279
- exists. The tag also takes an optional @equals@ or @matches@ attribute;
280
- these will expand the tag if the field's content equals or matches the
281
- given string or regex.
282
-
283
- *Usage:*
284
243
 
285
- <pre><code><r:if_field name=\"author\" [equals|matches=\"John\"] [ignore_case=\"true|false\"]>...</r:if_field></code></pre>"
286
244
  if_parent: "Renders the contained elements only if the current contextual page has a parent, i.e.
287
245
  is not the root page.
288
246
 
@@ -332,21 +290,6 @@ The above example will produce the following:
332
290
  //]]>
333
291
  </script>
334
292
  <script type=\"text/javascript\" src=\"/js/other.js\"></script></code></pre>"
335
- link: "Renders a link to the page. When used as a single tag it uses the page's title
336
- for the link name. When used as a double tag the part in between both tags will
337
- be used as the link text. The link tag passes all attributes over to the HTML
338
- @a@ tag. This is very useful for passing attributes like the @class@ attribute
339
- or @id@ attribute. If the @anchor@ attribute is passed to the tag it will
340
- append a pound sign (<code>#</code>) followed by the value of the attribute to
341
- the @href@ attribute of the HTML @a@ tag--effectively making an HTML anchor.
342
-
343
- *Usage:*
344
-
345
- <pre><code><r:link [anchor=\"name\"] [other attributes...] /></code></pre>
346
-
347
- or
348
-
349
- <pre><code><r:link [anchor=\"name\"] [other attributes...]>link text here</r:link></code></pre>"
350
293
  markdown: "Filters its contents with the Markdown filter.
351
294
 
352
295
  *Usage:*
@@ -484,12 +427,6 @@ The above example will produce the following:
484
427
  *Usage:*
485
428
 
486
429
  <pre><code><r:snippet name=\"snippet_name\">Lorem ipsum dolor...</r:snippet></code></pre>"
487
- status: "Prints the page's status as a string. Optional attribute 'downcase'
488
- will cause the status to be all lowercase.
489
-
490
- *Usage:*
491
-
492
- <pre><code><r:status [downcase='true'] /></code></pre>"
493
430
  stylesheet: "Renders the content from or a reference to the stylesheet specified in the @slug@
494
431
  attribute. Additionally, the @as@ attribute can be used to make the tag render
495
432
  as one of the following:
@@ -563,19 +500,6 @@ The above example will produce the following:
563
500
  *Usage:*
564
501
 
565
502
  <pre><code><r:unless_content [part=\"part_name, other_part\"] [inherit=\"false\"] [find=\"any\"]>...</r:unless_content></code></pre>"
566
- unless_dev: "The opposite of the @if_dev@ tag.
567
-
568
- *Usage:*
569
-
570
- <pre><code><r:unless_dev>...</r:unless_dev></code></pre>"
571
- unless_field: "The opposite of @if_field@. Renders the contained elements unless the field
572
- given in the @name@ attribute exists. The tag also takes an optional
573
- @equals@ or @matches@ attribute; these will expand the tag unless the
574
- field's content equals or matches the given string or regex.
575
-
576
- *Usage:*
577
-
578
- <pre><code><r:unless_field name=\"author\" [equals|matches=\"John\"] [ignore_case=\"true|false\"]>...</r:unless_field></code></pre>"
579
503
  unless_parent: "Renders the contained elements only if the current contextual page has no parent, i.e.
580
504
  is the root page.
581
505