Loading...
 
Features / Usability

Features / Usability


PluginLIST - How does "relation" filter work?

posts: 8633 Israel

Hello Da’ud,

Sorry I can’t give a clear answer just some comments after experimenting.
(thanks for your question, I learned something). 😉

I never used the relation filter and qualifier but with relation tracker field: http://doc.tiki.org/PluginList-filter-control-block#Related_items

Checking : http://doc.tiki.org/Search-and-List-from-Unified-Index
I see wiki page have a relations field so I tried to follow the output of this field and there is one.

I suggest you go to your Search admin control panel, tab tools.
There use the "Experiment with plugin LIST" with the output template.

Copy to clipboard
{filter type="wiki page"} {output(template="debug")}


Check and use the correct output of the fields:
relations
relation_objects
relation_types
relation_count

I tested quickly and I had results using:

Copy to clipboard
{filter relation="page_1" objecttype="wiki page" qualifier="tiki.link.related"} {output(template="debug")}

(result: page_2)

Copy to clipboard
{filter relation="page_2" objecttype="wiki page" qualifier="tiki.link.related.invert"} {output(template="debug")}

(result: page_1)

Seems working with backlink and with alias is the quick way but I guess you can have your own.

I stopped here my investigation, but from here you should be able to dig and find what to filter and how for your use case.

Good luck !

There are no comments at this time.

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