Re: [campsite-support] Why doesn't this work?
  • Hi Tim,

    I tested the code you sent me and it works perfectly for me. I created a
    template containing only the code you sent (copy/pasted it). I get the issue
    and articles as they are in the database. What do you get in your browser?

    Also, there is no need to use local and set_issue, the following code will
    do just the same (tested):

    {{ list_issues name="issues" }}

    {{ $campsite->issue->name }}



    {{ list_articles }}

    {{ $campsite->article->name }}


    {{ /list_articles }}
    {{ /list_issues }}

    Regards,
    Mugur

    On Jan 15, 2008 9:09 PM, wrote:

    > Author: Tim Smith
    > Link: http://code.campware.org/phorum/read.php?8,6119,6119#msg-6119
    >
    > --------------------------------------------------------------------------------
    >
    > I want to get a list of past issues and under each issue list the articles
    > associated with them. This is the template code I have.
    >
    >
    > {{ list_issues name="issues" }}
    > {{ $campsite->issue->name }}
    >
    > {{ local }}
    > {{ set_issue number="$campsite->issue->number" }}
    > {{ list_articles }}
    > {{ $campsite->article->name }}
    > {{ /list_articles }}
    > {{ /local }}
    >
    > {{ /list_issues }}
    >
    >
    > Why doesn't this work?
    >
    > --
    > Sent from Campware Forums
    > http://code.campware.org/phorum
    >
  • 1 Comment sorted by
  • I added another issue (previously I only had one). Now it works.

    Tim