History: CustomWikiMeta
Preview of version: 2
Customize your Wiki authors information (in the editdate section)
In BRANCH-1-9, as of 8th Feb 2005, an array called $contributors is available to templates called from tiki-index.php. This may be used to customize the way that authors information is presented in the "editdate" section of a wiki page. The array contains, at most, the 10 next most recent editors for the page and never contains the most recent editor nor the Tiki users 'system' and 'admin'.
This functionality has some wrinkles when minor edits are (or have been) enabled, due to the way that authors' information is stored under such circumstances (an author of a minor edit may be displayed in preference to a major author).
Default style for most themes:

<p class="editdate"> {tr}Created by{/tr}: {$creator|userlink} {tr}last modification{/tr}: {$lastModif|tiki_long_datetime} {tr}by{/tr} {$lastUser|userlink} </p>
))PmWiki(( style - good for business uses:

<p class="editdate"> {tr}Last edited by{/tr} {$lastUser|userlink}{section name=author loop=$contributors} {if $smarty.section.author.first}, {tr}based on contributions from{/tr} {else} {if !$smarty.section.author.last}, {else} {tr}and{/tr} {/if}{/if}{$contributors[author]|userlink}{/section}.<br /> {tr}Page last modified on{/tr} {$lastModif|tiki_long_datetime}. </p>
Collaborative style:

<p class="editdate"> {tr}Contributors to this page{/tr}: {$lastUser|userlink}{section name=author loop=$contributors} {if !$smarty.section.author.last}, {else} {tr}and{/tr} {/if}{$contributors[author].user|userlink}{/section}.<br /> {tr}Page last modified on{/tr} {$lastModif|tiki_long_datetime}. </p>
- The wikilib->get_contributors(...) call adds 1 database query per wiki page.
- The ))PmWiki(( and collaborative styles add exponentially more database queries to a page, the more authors there are. For one author, the hit is typically 1 or 2 queries, rising to 15 or 16 queries for 4 authors - it gets worse, the more authors there are. This is a problem with the userlink filter (lib/smarty_tiki/modifier.userlink.php) (the workaround is to remove "|userlink" from the codes above).
See EditTemplates for more information on customizing .tpl files.
See CustomHome for information about creating custom home pages.