User:trevorh

  • Revision slug: User:trevorh
  • Revision title: User:trevorh
  • Revision id: 102984
  • Created:
  • Creator: trevorh
  • Is current revision? No
  • Comment 9 words added, 4 words removed

Revision Content

Draft pages that I am working on:

//page.subpages;
//map.Keys(page.subpages);
//map.Values(page.subpages);
//map.KeyValues(page.subpages);
<ul>;
var pSubPagesMap = page.subpages;
var pSubPagesList = map.Values(pSubPagesMap);
var pSubPagesListOrdered = list.orderby(pSubPagesList, "title ascending");
foreach (var p in pSubPagesListOrdered) {
  <li>
    web.link(p.uri, p.title)&nbsp;
    date.ChangeTimezone(p.date, user.timezone)
    if (map.contains(p.tags, "delete")) { " - complete (tagged for deletion)"; }
  </>;
}
</ul>;

Revision Source

<p>Draft pages that I am working on:</p>
<pre class="script">//page.subpages;
//map.Keys(page.subpages);
//map.Values(page.subpages);
//map.KeyValues(page.subpages);
&lt;ul&gt;;
var pSubPagesMap = page.subpages;
var pSubPagesList = map.Values(pSubPagesMap);
var pSubPagesListOrdered = list.orderby(pSubPagesList, "title ascending");
foreach (var p in pSubPagesListOrdered) {
  &lt;li&gt;
    web.link(p.uri, p.title)&amp;nbsp;
    date.ChangeTimezone(p.date, user.timezone)
    if (map.contains(p.tags, "delete")) { " - complete (tagged for deletion)"; }
  &lt;/&gt;;
}
&lt;/ul&gt;;
</pre>
Revert to this revision