Update Index and Roster

The __Update Index and Roster__ Wiki Button is a customiseable button that powers the updating of various Activity Views.

  

# Customisation

The example on the Dojo Sites page is more sophisticated, as it updates a specific page with an atypical name - rather than simply creating a new page. Examine the html of the form to explore the syntax.

To start we have a choice of one of two transport urls to set in the form action. This is the first line of the html of the wiki-button, which takes the following form:

<form action='{{transportURL}}'>

Replace the existing url or the `{{transportURL}}` element in the form with one of the following:

- https://rest.livecode.world/roster/atopiaSites - https://rest.livecode.world/roster/sites

The `/atopiaSites` version is used for sites on the Atopia Server (and is therefore faster). The `/sites` version is used for other federation sites and relies on data scraped from Wards ruby sitemap scrape which is considerably slower.

The most important parameter is the `wikiDomain` param. Set this to the domain or subdomain you want to display rosters for. The element in the form to customise looks like:

<input name='wikiDomain' value='{{fedwikiDomain}}' type='hidden'>

To provide an activity view of all the domains and subdomains of `fedwiki.org` use the following:

<input name='wikiDomain' value='fedwiki.org' type='hidden'>

to do the same for all the subdomains higher than `dojo.fed.wiki` use:

<input name='wikiDomain' value='dojo.fed.wiki' type='hidden'>

To use a non-default template as a starting point, add the following optional parameter:

<input name='pageTitle' value='{{Page Title}}' type='hidden'>

For instance the Dojo Index wiki-button uses:

<input name='pageTitle' value='Dojo Sites' type='hidden'>

# See also - Wiki Form - Wiki Button