@SELECT pagetitle, id FROM modx_site_content WHERE template = 17 ORDER BY pagetitle ASC
This question has been answered by multiple community members. See the first response.
@select "-Make selection-", "" from dual union (SELECT pagetitle, id FROM modx_site_content WHERE template = 17 ORDER BY pagetitle ASC)
This should work (not tested):
@select "-Make selection-", "" from dual union (SELECT pagetitle, id FROM modx_site_content WHERE template = 17 ORDER BY pagetitle ASC)
This should work (not tested):
@select "-Make selection-", "" from dual union (SELECT pagetitle, id FROM modx_site_content WHERE template = 17 ORDER BY pagetitle ASC)
@select "-Make selection-", "" from dual union (SELECT pagetitle, id FROM modx_site_content WHERE template = 17 AND id not in (select id from modx_site_content where type = 'weblink' and template = 17) ORDER BY pagetitle ASC)
AND id not in (select id from modx_site_content where class_key = 'modWebLink' and template = 17)
If the above doesn't work, then try this:
AND id not in (select id from modx_site_content where class_key = 'modWebLink' and template = 17)