list_section constraint
  • Hi all,

    i want to print all sections which are in an specific issue.
    Is there something like

    {{list_sections ignore_issue="false" constraints="issue_number equal 10"}}

    Best regards and thanks for your help!

    Thomas.
    Post edited by Adam Thomas at 2012-09-28 08:04:14
  • 6 Comments sorted by
  • I got it:

    {{local}}
    {{set_issue number="10"}}
    {{list_sections ignore_issue="false"}}
    ...

    Best regards,
    Thomas.
  • Other question: Can "local"s begin encapsulated?
    So can I put another "local" for printing all articles which section_number is 10 ?
  •  list_articles ignore_issue="true" ignore_section="true" constraints="issue is 1 section is Y"
  • NewsCoop is great!!

  • But -- last thing: How could this being ensured:

     {{ list_articles ignore_issue="true" ignore_section="true" constraints="issue is $gimme->issue->number section is $gimme->section->number"}}

    ($gimme->...) as constraint is not taken!!

    Best regards,
    Thomas.

  • And even this is being solved :-)
    Assign Smarty Variables and use them as constraint!

                                    {{assign var=inum value=$gimme->issue->number}}
                                    {{assign var=snum value=$gimme->section->number}}
                                   
    <li><a href="#">{{$inum}}={{$gimme->issue->number}}
    // {{$gimme->section->number}}</a></li>
                                   
    {{ list_articles ignore_issue="true" ignore_section="true"
    constraints="issue is $inum section is $snum"}}

    NewsCoop is fantastic!