Сообщники, заметил странность в WayFinder’е
Необходимо установить кол-во выводимых уровней. Полагаю, что параметр $limit -- то, что нужно.
Оказывается, что нет, лимит при запросе накладывается на ID!!! Или я что-то не догоняю?
Да, вот запрос с отрицательным лимитом, чтобы видно было:
MODx encountered the following error while attempting to parse the requested resource:
« Execution of a query to the database failed - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ’-4’ at line 1 »
SQL: SELECT DISTINCT sc.id, sc.menutitle, sc.pagetitle, sc.introtext, sc.menuindex, sc.published, sc.hidemenu, sc.parent, sc.isfolder, sc.description, sc.alias, sc.longtitle, sc.type,if(sc.type=’reference’,sc.content,’’) as content, sc.template, sc.link_attributes FROM `???????_ss`.`modx_site_content` sc LEFT JOIN `??????_ss`.`modx_document_groups` dg ON dg.document = sc.id WHERE sc.published=1 AND sc.deleted=0 AND (sc.privateweb=0) AND sc.hidemenu=0 AND sc.id IN (1,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,65,81,66,56,57,58,59,60,61,62,54,55,92,67,68,93,94,95,96,97,70,69,71,72,73,101,63,98,99,100,102,103,104,105,106,107,108,109,110,111,86,82,87,88,89,90,91) GROUP BY sc.id ORDER BY sc.menuindex ASC LIMIT 0, -4;