We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 50923
    • 137 Posts
    I ma trying to create simple select tv for some resource, only problem is that i can list them like this

    @SELECT pagetitle, id FROM modx_site_content WHERE parent=7


    But i dont know ID, i need somthing like this,

    @SELECT pagetitle, id FROM modx_site_content WHERE parent=[[*id]]


    Only problem is that this does not work, i need to get current id of editing resource, not to hardcode 7
      <a href="www.play2web.com" title="izrada web sajtova">Izrada web sajtova</a>
      • 37105
      • 194 Posts
      Is it possible to get the current page id by adding chunk binding?
      @CHUNK name-of-chunk

      and in this chunk just call the template tag
      [[*id]]

      This tag should always be available when editing a resource.
        Codeplaza Webdesign: for professional websites at low cost