Jump to content

Spyros

Members
  • Posts

    4
  • Joined

  • Last visited

Posts posted by Spyros

  1. Thank you Robin for pointing me in to the right direction

    So as you said the issue was from the Page Query Boss module.
    Actually it was not an issue of the plugin but I had to change the configuration of the output. The default output format is an array with the "PAGE NAME" as keys. Instead I used the ids as keys.

    $modules = wire('modules');
    $modules->get('PageQueryBoss')->defaults['index-id'] = ['Page'];
    $pages->find('template=templateNAME')->pageQueryJson($query);

     

    • Like 1
  2. Hello Huseyin

    I have many pages which share the same "PAGE NAME", but there are not on the same level. For example:

    Level1/PAGE_NAME_EXAMPLE
    Level1/level2/PAGE_NAME_EXAMPLE
    Level1/level2/level3/PAGE_NAME_EXAMPLE

    $pages->find('template=templateNAME')->pageQueryJson($query);

    So for example if we had to retrieve the above example of pages I would get only one of those. I'm not sure if it gets the first or the last match.
    If I change the "PAGE NAME" to something unique then I'm getting the page.

    Thank you 
    Spyros

×
×
  • Create New...