Loading...
 
Features / Usability

Features / Usability


[SOLVED] Help with PluginList item directing to tpl

posts: 228 Ukraine

Hi,

I thought it was fairly simple to add a tpl and point PluginLIST to it to display the item (like the Plugin Tracker List parameter 'URL') but for some reason it's turning out much harder.

I followed all the instructions on this page (very, very carefully) :
http://doc.tiki.org/PluginList-advanced-output-control-block

If I use this combination:

Copy to clipboard
{output wiki="pageName tpl"} or {output tplwiki="pageName tpl"} {FORMAT(name="title_link")}{display name="title" format="objectlink"}{FORMAT}

Than goes to Tracker, not the wiki template

If I use this combination:

Copy to clipboard
{filter field="object_id" content="{ {itemId} }"} (without the extra spaces) {FORMAT(name="title_link")}[pageName tpl?itemId={display name="object_id"}|{display name="title"}]{FORMAT}

Than goes to the tpl but does not display the item - it only shows the actual Smarty code, e.g. nothing filled in.

I have 'Argument Variables' in Control Panels enabled.

On the tpl I have 'tiki_p_use_as_template' permissions set to 'registered' or higher users (tried Anonymous, no difference). And the template is very simple (zero formatting) just:

Field A: {$f_428}
Field B: {$f_415}
Field C: {$f_406}

Cleared cache and re-indexed many times.

What did I miss? Or, where is the mistake in my 'code' above?

Thanks,
Mike

posts: 228 Ukraine

Issue RESOLVED! At first, I wanted to say, 'Doh!', another 'user error', but, than I realized the PluginLIST documentation is not complete. It should pull in some of the existing documentation from PluginTracker List.

While I am jumping head first into the LIST coding language, I looked back to my Plugin Tracker List days and realized I did not set up a 'Plugin Tracker' page that pulls in the tpl - I pointed the PluginLIST code directly to the tpl (per the LIST documentation) instead of a 'PluginTracker' page.

So:
PluginLIST page > PluginTracker page (which pulls in the separate tpl page)

Maybe there is a way to go from PluginLIST directly to displaying the item on a tpl page and I did not configure it correctly, if so, please correct me.

I also tried creating a page with another PluginLIST page set to 'listmax=1' and pull in the tpl page, but no success. My guess it can be done, but using PluginTracker was just a lot easier and quicker. Also, I don't thing there would be any 'speed' benefit with using PluginLIST over PluginTracker to display one item.

Note to self:
1. write forum post for help on my own site
2. continue to resolve issue independently for 24 -48 hours
3. if not resolved, post in Forums :-)

posts: 126886 United Kingdom

Hi Mike

We did actually write a plugintrackerlist to pluginlist converter for just such an occasion, it handles most of the conversions, not 100% sure it does pretty tracker template pages too (i think @Roberto Kirschbaum added that a few months ago but not sure).

Look, there's even a doc page about it here: PluginTrackerList To PluginList Converter! cool

This might help you understand how pluginlist works better, as you're so familiar with trackerlist, let me know how you get on!

posts: 228 Ukraine

Hi Jonny,

yea, I was actually considering that route, but don't have any sites on Tiki 21 yet (just this past week I made a break though, thanks to comments on a bug report, that now allows me to use Tiki with php higher than 5.,6, so will update soon).

I remember Roberto was working on it, as this is what was happening before:


It's been a few months, I'm guessing it's done, so will try and report back.

Thanks,
Mike

p.s. awesome instructions for the converter - simple and clear! biggrin

posts: 228 Ukraine

Hi Jonny,

Finally updated a site to Tiki 21.2, enabled the Converter feature, tested, though unfortunately, the URL param does not convert yet. I'm guessing Roberto is back-logged with work so will get to it eventually.

br,
Mike


posts: 228 Ukraine

Hi Bernard,

I think you are correct about spaces in names for very old versions of Tiki (TIki 12 or earlier?) but that seems to have been resolved a while ago.

All works good with a space in my page name that leads to the 'Tracker' page (on which is a link to the tpl page). See my first post above - the second 'combination' works good.

br,
Mike


Upcoming Events

1)  18 Apr 2024 14:00 GMT-0000
Tiki Roundtable Meeting
2)  16 May 2024 14:00 GMT-0000
Tiki Roundtable Meeting
3)  20 Jun 2024 14:00 GMT-0000
Tiki Roundtable Meeting
4)  18 Jul 2024 14:00 GMT-0000
Tiki Roundtable Meeting
5)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
7) 
Tiki birthday
8)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting
9)  21 Nov 2024 14:00 GMT-0000
Tiki Roundtable Meeting
10)  19 Dec 2024 14:00 GMT-0000
Tiki Roundtable Meeting