Table of contents
No headers

This page shows how to iterate over sub-pages to create a dynamic table of contributors.

<table init="var s = page.parent.subpages" if="#s" class="table">
	<tr>
		<th>Title</th>
		<th>Author</th>
		<th>Gravatar</th>
	</tr>
	<tr foreach="var p in s" class="{{__count % 2 ? 'bg2'; : 'bg1'}}>
		<td>{{ web.link(p.uri, p.title) }}</td>
		<td>{{ web.link(p.author.uri, p.author.name) }}</td>
		<td>{{ p.author.gravatar }}</td>
	</tr>
</table> 
Title Author Gravatar
Sample 5: Notebook Howleyda
Sample 3: Gravatars, The Sequel keep2smile
Sample 2: Gravatar SteveB
Sample 4: Custom Search Form SteveB
Sample 1: Control Flow Statements SteveB

    

Tag page
You must login to post a comment.