Loading...
 
Features / Usability

Features / Usability


Re: Creating a Wiki Page via Tracker

posts: 22

Hi John,

I think the answer is yes. With the use of a wiki page as a template to create the new wiki page from the tracker.

For example:

Copy to clipboard
{tracker trackerId="19" fields="88:89:90:91" action="save" outputwiki="wikipagefromtrackerTPL" outputtowiki="88" view="page" discarditem="y"}


where outputtowiki is set to the field in your tracker you wish to use as the name of the new wiki page.

where discarditem is set to "y" is you want the item to be deleted from the tracker when the wiki page is created, or "n" if you want the item to remain stored in the tracker.

where outputwiki is set to the name of a wiki page you wish to use as a template for your layout. This wiki page needs the "Can use the page as a template for tracker or unified search (tiki_p_use_as_template)" set for the user group(s). In my example above it is called "wikipagefromtrackerTPL"

For this you need to convert your existing sample wiki page for Sam Maloof into a template, replacing text with the relevant field ids from your tracker in the form of {$f_xx} where "xx" is the field Id number

For example:
{DIV( class="panel infobox col-sm-3 pull-right")}

!!! {$f_90}
{$f_91}
!!!! Information
|| Birth date: {$f_88} |
Birth place: {$f_89} |

etc.

I use TRACKERIF a lot in templates to test if a field is empty or not before deciding to display the information/text.

Copy to clipboard
{TRACKERIF(test="(f_888!='')")} !!! __Birth date:__ {$f_88} | {TRACKERIF}


I hope this helps.

Gail

There are no comments at this time.