eZ Community » Forums » eZ Platform » display content
expandshrink

display content

display content

Sunday 16 April 2017 11:57:23 am - 1 reply

HI

I have this arborescence in the admin interface 

categorie1 

sub1_cate1

sab2_cate1

categorie2

sub1_cate2

sub2_cate2

and i want to dispaly it in the frontend, any idea to dispaly it. 

Saturday 22 April 2017 4:59:18 pm

I'm not sure if i understood you?

Use eZP legacy search:

https://doc.ez.no/display/EZP/Search+Criteria+and+Sort+Clauses

https://doc.ez.no/display/EZP/Criteria+reference

use findLocations() on searchService

remember about:

$baseCriteriaArray = [
    new Criterion\Visibility(Criterion\Visibility::VISIBLE),
    new Criterion\LanguageCode($this->getConfigResolver()->getParameter('languages')),
    //new Criterion\Location\Priority(Criterion\Operator::GT, -1),
];

1.first search  all categorieX and then for each category search all subcategory or

2.search all categories, subcat in one query and then sort, agregate these in PHP

Modified on Saturday 22 April 2017 5:03:35 pm by Radek Zadroga

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from