こんにちは。よろしくお願い致します。
スニペット Wayfinderについてなのですが。。
Wayfinderのパラメータに、startIdというのがあり、
ドキュメントIDを指定すると、その下のドキュメントをリストアップしますよね。
で、このstartIDに[[UltimateParent]]を利用して、カレントドキュメントの
親IDを書き出させたいと思うのですが、以下のようにすると、
エラーが出てしまうのです。。
[[Wayfinder? &startID=`[[UltimateParent]]`]]
« MODx Parse Error »
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 '[[UltimateParen AND sc.published=1 AND sc.deleted=0 AND (sc.pri »
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 `liolion`.modx_site_content sc LEFT JOIN `liolion`.modx_document_groups dg on dg.document = sc.id WHERE sc.parent = [[UltimateParen AND sc.published=1 AND sc.deleted=0 AND (sc.privateweb=0) AND sc.hidemenu = 0 GROUP BY sc.id ORDER BY sc.menuindex ASC;
何が良くないのでしょうか。。