Revision 102980 of User:trevorh

  • Revision slug: User:trevorh
  • Revision title: User:trevorh
  • Revision id: 102980
  • Created:
  • Creator: trevorh
  • Is current revision? No
  • Comment 33 words added

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) {
  //var pTags = p.tags;
  <li>
    web.link(p.uri, p.title)&nbsp;
    p.date&nbsp;
    if (map.contains(p.tags, "delete")) { " - complete (pending delete)"; }
  </>;
}
</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) {
  //var pTags = p.tags;
  &lt;li&gt;
    web.link(p.uri, p.title)&amp;nbsp;
    p.date&amp;nbsp;
    if (map.contains(p.tags, "delete")) { " - complete (pending delete)"; }
  &lt;/&gt;;
}
&lt;/ul&gt;;
</pre>
Revert to this revision