Loading...
 
Skip to main content

Features / Usability


LIST filter using wiki page name

Hi. First time poster. I have a wiki page that lists a number of tracker fields from a single item, using the plugin LIST. I would like to filter tracker items using the wiki page name, to keep from having to manually update the filter criteria for the LIST command in the source. I'm not sure about the syntax for revealing wiki page name. What I'm trying to accomplish would look something like this;
{filter field="tracker_field_name" exact={wiki_page_title}}

If there is a different approach I should be using please let me know.

Hello and welcome Leviticus,

More details are welcome to answer such question usually.(Tiki version ?) 😉

Supposing you use a fresh Tiki, this should work on a Wiki Page. (work on Tiki27)

Copy to clipboard
{LIST()} {filter field="tracker_id" content="YOURTRACKERID"} {filter type="trackeritem"} {filter field="tracker_field_pagename" exact=""} {LIST}


You could use only one filter, the pagename filter, but I prefer to keep things clean. 😉

Bernard


Hi Bernard.

I've become used to seeing you on youtube latey 😊 Thanks for replying.

Tiki 28.3

there is a problem with the forum rendering the { symbol. Works in preview but not in publish.

I tried using 'page' for exact in the filter but no return data. i expect this is a placeholder? The param 'pagename' is not listed in the Unified Index, so i assume you to mean a Tracker field called 'pagename'

What I have for LIST filter is something similar to this :
{filter field="tracker_field_myTextField" exact="myTextFieldvalue"}

where myTextFieldvalue is ALSO the Title of the wiki page that is rendering the tracker content.

So, to save me editing source for each Wiki Page to generate Tracker filter results, I would like to use the Wiki Page TITLE as the filter criteria for the Tracker content.

Is there a way to display the Title of a wiki page using wikisyntax or other? something like
{THISWikiPageTitle} I am thinking I can use the same format in the filter then also. ie.

{filter field="tracker_field_myTextField" exact="{THISWikiPageTitle}"}

Sorry if i am not clear, the syntax is new to me and i am still learning.


Thanks for the page link. This will prove helpful I'm sure. Will update if I have any success.

SOLVED!

Ty Bernard. Your link let me know I did not have 'Tiki Argument Variables' enabled for the Wiki.
Admin (tiki-admin.php) -> Editing and Plugins -> Wiki argument variables

Once enabled is works!

Referencing my original post this works now {filter field="tracker_field_name" exact="{ {page} }"} (without spaces between parenthesis)

Now Curators of my Wiki do not have to edit the SOURCE to apply the correct Tracker Items. They just apply the template and presto!