Template help needed!
  • Hi,

    so I have 3.5. now up and running (thanks to Andrey who probably threatened my server with holidays in Siberia or something like that Very Happy ) and am adapting it to my needs.

    I have had a good look at the templates and template snippets and at the manuals. Unfortunately I did not find the answer I am looking for.

    On the front page of the Journal template there are three sections in a row beside the logo. These seem to be taken nillywilly from sections in general? Or is there a system to that? Or is there a way that I can decide which sections I want displayed there?

    Thanks for any help you can give me there.

    Andel
  • 2 Comments sorted by
  • Hi Andel,

    > On the front page of the Journal template there are three
    > sections in a row beside the logo. These seem to be taken
    > nillywilly from sections in general? Or is there a system to
    > that? Or is there a way that I can decide which sections I
    > want displayed there?

    This 'Recent entires' block is defined in template the_journal/_tpl/top-recent-entries.tpl, in this way:

    {{ list_articles length="3" ignore_issue="true" ignore_section="true" order="bypublishdate desc" constraints="type is news" }}

    which means that last three published articles of type 'news' will be shown here, regardless where they are.

    Ljuba
    --
    Ljuba Rankovic
    Senior Front End Developer, Sourcefabric
    ljuba.rankovic@sourcefabric.org

    http://www.sourcefabric.org
    http://www.twitter.com/Sourcefabric
  • Hi Ljuba,

    thank you!

    I again perused the manual, but maybe I am too stupid to find that. Can I e.g. define another article type and add that somehow? Like constraints="type is news and stories" ? I take it I could simply replace news with stories if I wanted to do that, right?

    Andel