Smart list filter (customSearch filter ?) from a category page (category module link)
On a Tiki 22 I use a category module in one of my menu to populate it with items from a specific category.
{module module="categories" nobox="y" decoration="0" type="trackerItem" selflink="y" hideEmpty="y" onlyChildren="y" categId="22"}
It has a selflink meaning each menu item is a link to a wiki page with the same name as the category. (cool)
On this page I have a plugin a customSearch plugin to display trackeritems with this category assigned.
{CUSTOMSEARCH(tpl="customSearch.tpl")}{list max="9"} {filter field="tracker_id" content="2"} {filter categories="10"} {output template="product_homeShort_listing.tpl"} {FORMAT(name="category")}{display name="tracker_field_productCategory" format="trackerrender"}{FORMAT} {FORMAT(name="name")}{display name="tracker_field_productName" format="trackerrender"}{FORMAT} {FORMAT(name="brand")}{display name="tracker_field_productBrandName" format="trackerrender"}{FORMAT} {CUSTOMSEARCH}
For each category, each page I have to set manually the category filter
{filter categories="10"}
It means I have a "lot of the same" page with only a change... the filter for the category.
Would it be a smart way to have a single page (alias of all the categories name) getting the category (id) that was clicked for filter ?
To pass into the url the category ID then to have it filtered on landing on the page ?
To be complete it should also be multilingual-proof.
Meaning; categories have a different name depending the language and we should have different destination page for each language. (IE: categorie(10):Kitchen link goes to Kitchen page. categorie(10):Cuisine link goes to Cuisine page)
ha ha ! ?