You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue exists around using getPageTerms in getResources/pdoResources calls where &outerTpl and &innerTpl inline calls reference standard document placeholder names, ie [[+pagetitle]]. MODx parses the placeholder before processing the snippet call, leaving the placeholder containing the content of the placeholder before calling the snippet, rather than the placeholder itself.
Temporary fix for this is to use reference calls in SQL to create new placeholders for MODx to process, ie [[+terms_title]]. For instance:
$sql = "SELECT terms.term_id,doc.pagetitle, doc.pagetitle As term_title
FROM tax_page_terms terms
LEFT JOIN $content_table doc ON doc.id = terms.term_id
WHERE terms.page_id = {$page_id} {$and_where} ORDER BY terms.term_id ASC {$limit};";
Placeholders in the outerTpl/innerTpl calls can be adjusted to use [[+term.title]] in this case.
This issue exists for all relevant snippets, and requires resolution.
The text was updated successfully, but these errors were encountered:
Issue exists around using getPageTerms in getResources/pdoResources calls where &outerTpl and &innerTpl inline calls reference standard document placeholder names, ie [[+pagetitle]]. MODx parses the placeholder before processing the snippet call, leaving the placeholder containing the content of the placeholder before calling the snippet, rather than the placeholder itself.
Temporary fix for this is to use reference calls in SQL to create new placeholders for MODx to process, ie [[+terms_title]]. For instance:
$sql = "SELECT terms.term_id,doc.pagetitle, doc.pagetitle As term_title
FROM tax_page_terms terms
LEFT JOIN $content_table doc ON doc.id = terms.term_id
WHERE terms.page_id = {$page_id} {$and_where} ORDER BY terms.term_id ASC {$limit};";
Placeholders in the outerTpl/innerTpl calls can be adjusted to use [[+term.title]] in this case.
This issue exists for all relevant snippets, and requires resolution.
The text was updated successfully, but these errors were encountered: