We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 16511
    • 16 Posts
    I’d like to create a TV that will allow the content editor to select a published page on the site, and output a link to that page.

    Is a [tt]@SELECT[/tt] binding really required to do this? If so, any hints on what that binding should be (and what documentation I should consult rather than going digging through database tables) would be greatly appreciated.

    It seems to me a "Page select" input type for TVs would be a reasonable thing to have...
      • 17883
      • 1,039 Posts
      Try the following (not tested):

      create a TV "pagelink" with Type Listbox (single select) and options:

      @SELECT pagetitle,id FROM modx_site_content WHERE published=1 ORDER by id ASC


      If you chose a page(title) the id should be stored and accessible as link like

      [~[*pagelink*]~]