We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 32678
    • 290 Posts
    I'm converting a site from Evo to Revo and taking advantage of the process to refine how the site's put together. This question I have may be basic to you pros, so apologies if that's the case:

    Is it possible to create a single-select listbox template variable that outputs, for selection, all the resources (web pages) of the site, and that lists each resource's pagetitle? In addition, can this output be filtered to not include containers or specific resources (such as those used for site configuration purposes)?

    If you have a solution, would you please describe it in detail?

    Thanks in advance!

    Wesley
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Probably use @SELECT in the input options field. Something like

      @SELECT pagetitle from modx_site_content where isparent=0 and id not in (1,2,3) 
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 19369
        • 1,098 Posts
        You could try with Resource List Template Variable. I am not sure if it is possible to exclude specific resources though.
          • 32678
          • 290 Posts
          Thanks both for the responses. I don't often use data bindings because I don't know my about making mySQL statements. However, Susan, I'll give what you suggest a try. Thanks.