#1 2016-07-14 21:03:13

federico
Member
Registered: 2016-01-25
Posts: 12

Pass an extend field variable to a ionize article filter tag (no php)

Hello,
I am really stuck with a simple construct, how to pass a variable to a ionize article filter tag (no php conditional if possible, as they slow down the ionize filter parsing).

I need to show all the articles related to the current displayed extend-field category in the page (which varies depending on which product the user is currently watching in that moment), imagine like a page displaying one product (say "Pineapple") and at the bottom of that page, a section that displays all its similar products filtered by the extend field value of the main product (filtered articles with an extend field value corresponding to "Esotic Fruits"). If the user is watching a product (say "the Book of ..."), the section that follow will show up all related articles with an extend-field value corresponding to "books".

I should achieve this by filtering articles with the extent field value, the problem is that the value defining the extend field of the main product varies, so dynamic value, thus the section "related products" need to display the articles filtered by that extend field value.

here some similar post, but no luck to me so far: http://ionizecms.com/forum/viewtopic.php?id=1873

I should achieve something like that:

<ion:article>
<ion:get key="ext-field-sector-value" to_var="ext-field-sector-value" />
<ion:article>

<ion:page:articles id="works" filter="article.ext-field-sector-value!=__ext-field-sector-value__" limit="10" order_by="date DESC">
<ul id="showcase">
<ion:article>
<li><p><a href="<ion:url/>"><ion:title/></a> <ion:content paragraph="1" /></p></li>
</ion:article>
</ul>
</ion:page:articles>

Please help, I will really appreciated if you can get this thing sorted.
Thank you in advance
best,
federico

Last edited by federico (2016-07-15 17:46:36)

Offline

#2 2016-07-15 17:48:17

federico
Member
Registered: 2016-01-25
Posts: 12

Re: Pass an extend field variable to a ionize article filter tag (no php)

Anyone looking for a dynamic variable inside a ionize extend filter tag? Please help!

Last edited by federico (2016-07-20 23:38:06)

Offline

What's Ionize ?

Ionize is an Open Source Content Management System created by webdesigners for webdesigners.

Created and maintained by Partikule and Toopixel, Ionize wants to be the easiest and most powerful CMS.

Can I help ?

Because talent is nothing without involvement, we are looking for motivated coders and webdesigners to join the project team.

Resources

Website : ionizecms.com
Documentation : doc.ionizecms.com

Development : Ionize on GitHub
Translations : Ionize Translations