[campsite-support] bug detect
  • {{ local }}
    {{ unset_topic }}

    {{ set_topic name="Προτείνουμε:EL" }}
    {{ if $campsite->current_list->at_beginning }}
    {{ /if }}

    : {{$campsite->topic->name }}
    {{ if $campsite->current_list->at_end }}
    {{ /if }}

    {{ list_articles constraints="topic is Προτείνουμε:EL" order="bypublishdate desc" }}



    {{ if $campsite->article->has_image(1) }}








    {{ /if }}


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



    {{ /list_articles }}




    {{ /local }}


    I spot the bug,

    the code is running with no problem, however when I try to add a new issue with the same structure
    it doesn't work.
    I am guessing it need another parameter ,

    I presume the reason is that it looks on the last published issue,
    and that issue apart from articles is empty,
    thats why it didn't print any articles names,
    when I unpublished the second issue everything was ok.

    However guys if that is the case the script needs some more tuning so to look to all 'issues'
    is there any variable – to make it ignore the number of issues and to force it look on all issues?

    May the force be with us.
  • 1 Comment sorted by
  • See this manual page:
    http://code.campware.org/manuals/campsite/3.3/index.php?idu

    Use:
    ignore_issue=true

    Mugur

    On Tue, Mar 23, 2010 at 5:48 PM, wrote:

    > {{ local }}
    > {{ unset_topic }}
    >
    > {{ set_topic name="Προτείνουμε:EL" }}
    > {{ if $campsite->current_list->at_beginning }}
    > {{ /if }}
    >
    > : > class="topic">{{$campsite->topic->name }}
    > {{ if $campsite->current_list->at_end }}
    > {{ /if }}
    >
    > {{ list_articles constraints="topic is Προτείνουμε:EL"
    > order="bypublishdate desc" }}
    >
    >
    >
    > {{ if $campsite->article->has_image(1) }}
    >
    >

    >
    >
    >
    >
    > {{ /if }}
    >
    >
    >

    > article.tpl" }}">{{ $campsite->article->name }}


    >
    > {{ /list_articles }}
    >
    >
    >
    >
    > {{ /local }}
    >
    >
    > I spot the bug,
    >
    > the code is running with no problem, however when I try to add a new issue
    > with the same structure
    > it doesn't work.
    > I am guessing it need another parameter ,
    >
    > I presume the reason is that it looks on the last published issue,
    > and that issue apart from articles is empty,
    > thats why it didn't print any articles names,
    > when I unpublished the second issue everything was ok.
    >
    > However guys if that is the case the script needs some more tuning so to
    > look to all 'issues'
    > is there any variable – to make it ignore the number of issues and to force
    > it look on all issues?
    >
    > May the force be with us.
    >
    >
    >