nblgeoweb VIP
Total posts: 178
09 Dec 2013 11:59

I see in Cobalt 8 there is a way to select relative categories. I've searched the forum and docs and can't find anything about this. How does this work and what can I do with it?

Last Modified: 02 Mar 2014


pepperstreet VIP
Total posts: 3,837
09 Dec 2013 14:37

It is prepared since C7. Unfortunately not functional, yet.


pepperstreet VIP
Total posts: 3,837
09 Dec 2013 14:40

Sergey
Total posts: 13,748
11 Dec 2013 05:04

It is saved and you can use it in template. But it is not used anywheer right now.


Sergey
Total posts: 13,748
11 Dec 2013 05:25

in category template

if($category->relative_cats)

{

$cats = json_decode($category->relative_cats);

echo '

Relative Categories

';

foreach($cats AS $cat)

{

echo ''.$cat->title.'';

}

}


nblgeoweb VIP
Total posts: 178
12 Dec 2013 11:13

Thanks Sergey. Very easy to implement in my template with that snippet of code.

Powered by Cobalt