Re: [campsite-support] Help with list_articles syntax
  • Hi Lee!

    I could make some tests, not any expert of Campsite yet though.
    But I like to use it as well. Now I just have an issue with upgrade
    and already two days with blank on the site.
    Didn't find any manual part telling about debug tools, neither anybody
    complaining similar issues...
    so sorry, can't test with you right now.

    Gene

    On 24.4.2009, at 19.29, "" > wrote:

    > Author: Lee
    > Link: http://code.campware.org/phorum/read.php?8,7050,7050#msg-7050
    > --------------------------------------------------------------------------------
    >
    > Have I mentioned that I LOVE campsite?? Smile
    >
    > I am try to list articles on a section page which match a certain
    > topic. Here is what I am doing:
    >
    > {{ assign var=cat value=`$smarty.get.category` }}
    > {{ if $cat }}
    > {{ assign var=cat_topic value="topic is $cat:en" }}
    >
    > {{ $cat }}
    > {{ else }}
    > {{ assign var=cat_topic value="" }}
    > {{ /if }}
    >
    > {{ list_articles length="20" constraints="OnSection is On
    > $cat_topic" order="byPublishDate desc" }}
    >
    > ...
    >
    > {{ /list_articles }}
    >
    > I'm sure the above is the "hard way" but regardless, I cannot get
    > only the requested topic to show. It shows everything under that
    > section.
    >
    > I tried simply including {{ set_topic name=$cat_topic }} but that
    > did not work either. My guess is part of the problem resides in that
    > many of my topic names have spaces in them, eg. "Beverly Shores".
    >
    > Can anyone point me in the right direction or provide me any guidance?
    >
    > --
    > Sent from Campware Forums
    > http://code.campware.org/phorum