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

    I would like to ask you if there is any way how to set up multiple contstraint values for single SET in Form Customization (FC).

    I am building multi-language site for 25+ languages which means 25+ contexts. Resources tree structure will remain the same across different contexts - i.e. "homepage" (news, references etc.) container will be available in every context. In this case, I have to duplicate FC SET(s) for container's children 25+ times. This works but bigger site gets impossible to manage in case of any needed FC changes.

    I am thinking about 3 possible solutions but I wasn't able to make work any of them:
    1. Add multiple values into "Constraint". (using comma separated values or something)
    2. Specify parent's template variable in "Constraint field". (something like: parent.template_id)
    3. Use system/context settings placeholder in "Constraint field". (i.e. [[++home_container_id]])

    I would really appreciate any kind of help or tip how to make this work better. Thanks in advance! [ed. note: neogenetic last edited this post 13 years, 8 months ago.]
      • 36562
      • 94 Posts
      One way is to use :
      Constraint field: class_key
      Constraint: modDocument

      That will then apply the rule to all documents/resources BUT not articles or article container. If you want to address those
      you will need to use Article or ArticlesContainer.

      If you want to address all, inc articles and such this should work:

      Constraint field: context_key
      Constraint: web

      or even

      Constraint field: content_type
      Constraint: 1
        --------------------------------------
        www.williamastrom.se