Loading...
 
 Error
  • Contact the site administrator. The index needs rebuilding.
Features / Usability

Features / Usability


Can I use a Tracker as a prettytemplate front-end?

posts: 3665 United States

I thought this was possible... can some one point me in the right direction....using Tiki 6LTS...

I want make a form with three drop lists. Based on the selection of the drop lists the resulting page shows different content.

I *thought* I could do this with the TRACKER plugin + Pretty Tracker.

This creates the form:

Copy to clipboard
{TRACKER(trackerId="1" fields="1:2:3" action="Go" overwrite="n" discarditem="y" outputwiki="CustomContentTPL")}{TRACKER}


I don't want to save the actual created tracker info, that's why I'm using discarditem="y" — I just want to use Tiki's tracker interface to build the section form.


And on my CustomContentTPL page I have:

Copy to clipboard
''Generic content for all pages '' if ($f_1) eq 'A'} Specific info for Selection 1.A {INCLUDE(page="ContentA")}{INCLUDE} {/if} if ($f_1) eq 'B'} Specific info for Selection 1.B {INCLUDE(page="ContentB")}{INCLUDE} {/if} if ($f_2) eq 'AA'} Specific info for Selection 2.AA {INCLUDE(page="ContentAA")}{INCLUDE} {/if} etc..



But this doesn't seem to work. I'm not getting *anything* displayed after I select the options and click Go.

Any ideas? Please?

-R

posts: 3665 United States

Getting closer (I think)...

Copy to clipboard
{TRACKER(trackerId="1" fields="1:2:3" action="Generate" overwrite="n" reset="Reset" outputtowiki="1" discarditem="y" outputwiki="CustomContentTemplate")}Generating...{TRACKER}


After making the selections, Tiki now displays a new wiki page (based on the template), but is not parsing the data correctly.

You can see/test for yourself at:
http://demo.tiki.org/6x-stable/tiki-index.php?page=RickTest

-R


posts: 3665 United States

Thanks... that clears up several items.

Regarding
When using outputwiki as template you cannot use Smarty syntax programatically because the resulting output is static wiki page...

Can I Smarty syntax if I use a custom TPL file instead of a wiki page?

-R