We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 2281
    • 13 Posts
    Hi everybody,

    I have a TV with a @DIRECTORY binding for its default value.

    I actualy want to list the content of a directory within a page.

    So, I have :

    a TV : directory-list
    default value : @DIRECTORY /assets

    this works fine if I call [[*directory-list]]

    But if I change the default value to "@DIRECTORY [[+property]]" and call "[[*directory-list?property=`/assets`]]"... it doesn’t work !!!

    Any idea ?

    Vince.
      • 25663 MODX Staff
      • 12,272 Posts
      Hi Vince, I believe a fix for this was just committed to Revo 2.0.4, scheduled for release later this week.
        Ryan Thrash, MODX Co-Founder
        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
        • 28215
        • 4,149 Posts
        No, it wasn’t. Supporting properties in the input option or default fields isn’t currently in the featureset of TVs. It might be in later releases; it wont be in the 2.0.x branch.
          shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
          • 2281
          • 13 Posts
          Thank you for your answers !!

          It’s a bit curious... properties appear for everything... except for the @BINDING TV !! huh

          So sad... :’(

          Actualy, I aimed to do my own "filedownload" with this mecanism... very simplyfied... but it’s not possible, at last !

          Thanks again !

          Vince.