constraints syntax for
  • Hi,


    can you please give me an example of how to use the <article_type_attribute> constraints ? Ie

    {{ list_articles length="5" order="byPopularity desc" ignore_section="true" constraints="article_type_attribute news_article "}}

    Can I use a some kind of logical operations like

    constraints="sections not 1000 and not 100" ?
  • 1 Comment sorted by
  • Let's say you have an article type named "News" and it has a dynamic field
    "event_date" of type date. In the articles list you can insert this
    condition:

    {{ list_articles constraints="News event_date greater 2010-01-01" }}

    This will list all articles of type "News" which have "event_date" greater
    than 2010-01-01.

    Mugur Rus
    Senior Software Developer, Sourcefabric
    mugur.rus@sourcefabric.org

    Cluj-Napoca, Romania
    +40 (0)720 528408
    Skype: mugur_rus

    http://www.sourcefabric.org
    http://www.twitter.com/Sourcefabric


    On Thu, Oct 21, 2010 at 7:16 PM, sdancer75 <
    campsite-support@lists.sourcefabric.org> wrote:

    > Hi,
    >
    >
    > can you please give me an example of how to use the
    > <article_type_attribute> constraints ? Ie
    >
    > {{ list_articles length="5" order="byPopularity desc" ignore_section="true"
    > constraints="article_type_attribute news_article "}}
    >
    >
    >