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

    I'm a MODx newbie and trying to solve this litte problem:

    I'm creating a multi-language site using a set of contexts. Now I'd like to create TV of type Resource List for the editors to specify a teaser link target needed by the home page template that is used of all the start pages of each context.

    I'd like to restrict the list of options to contain only the resources that belong to the same context of the start page resource the editor tries to edit.

    Now I understand that it is possible to use dynamic values to define the input options of the TV. But all my attempts to define this special kind of restriction were not successful.

    Thanks in advance for any hints.

    Marco
      • 3186 ☆ A M B ☆
      • 279 Posts
      When I add a Resource TV list I see an option "Limit to Related Context".. When I enable this, I only see resources of that context. Is that what you mean? (I'm using 2.2.6 of course)
        MODX Ambassador (NL) & Professional MODX developer
        Follow me on Twitter | Visit my page on Facebook | View my code on Github | View my script posts
        MODX e-commerce solution SimpleCart
        • 42999
        • 7 Posts
        That was EXACTLY what I was looking for. Thank you!

        One additional question:
        Is there any possibilty to display the resource list as a tree instead of the flat dropdown list?

        Marco [ed. note: marco_stoll last edited this post 13 years, 6 months ago.]
          • 3186 ☆ A M B ☆
          • 279 Posts
          Not as far I know. But that comes because you can also search it, just start typing and it works like an autocomplete ;-)
            MODX Ambassador (NL) & Professional MODX developer
            Follow me on Twitter | Visit my page on Facebook | View my code on Github | View my script posts
            MODX e-commerce solution SimpleCart