In section template, ignore issue for just one section
  • Hi
    For my student's website at http://www.jusnews.net I'd like just one section (Features) to display articles from all issues. I have been looking at section.tpl but can't work out how to do it. 

    I have:

    {{ list_articles constraints="OnSection is on" }}
    .....
    {{ /list_articles }}

    So I guess in words what I want it to do is "List articles, if section is 7, then ignore issue=true" ... But how can I do this with Gimme?

     
  • 2 Comments sorted by
  • Hi,

    well for example, you can say

    {{ if $gimme->section->number == 7 }}
    {{ assign var="ignore" value="true" }}
    {{ else }}
    {{ assign var="ignore" value="false" }}
    {{ /if }}
    {{ list_articles ignore_issue=$ignore constraints="OnSection is on" }}
    ...
    {{ /list_articles }}

    That should work (haven't tried)
    --
    Ljuba Rankovic
    Senior Front End Developer, Sourcefabric
    ljuba.rankovic@sourcefabric.org

    http://www.sourcefabric.org
    http://www.twitter.com/Sourcefabric
  • That works great! Thanks..