Loading...
 
Skip to main content

Features / Usability


Setting a Link in a Wiki Page Tracker Template

I would like to set a link in a wiki page tracker template using the tracker field {$f_??} ... can this be done?

Example of what I have so far:

a href="tiki-user_information.php?username={$f_11}" /a

I this case the field input gets parsed out.

Is there another way to get it done?

If you just want to insert the logged in user, you can turn on Argument variables (https://doc.tiki.org/Wiki+Argument+VariablesQuestion) and then you can use {{user}} to get the user name.

Then this would work:
[tiki-user_information.php?username={{user}}]

Tom

Thanks Tom...I found solution that better fits may task. Using a display template file for the tracker I changed the line to:

Copy to clipboard
<form method="post" action="messu-compose.php"><div style="text-align: center;"><input type="hidden" name="to" value="{{$f_11|escape}}"><input type="hidden" name="subject" value="Bazaar Item Inquiry"><input type="hidden" name="body" value=""><input type="submit" class="btn btn-default"></div></form>


So the link calls messu-compose.php and the user can then send a message to the other user.