Welcome to Squishdot Websites Squishdot How-To
 about
 search
 post article
 Documentation
 Mailing Lists
 Bug Tracking
 Development
 Installation
 Upgrading
 Download
 admin
 rdf

 main


Filtering by subject
Newbies Posted by Ville Elomaa on Wednesday February 20, 08:35AM, 2002
from the dept.
I'd like to make in my site a similar user interface than in the Bay-C site, so that the users can get messages filtered by subject when clicking a button. I am a newbie with Squishdot, could someone help me?

<  |  >

 

Related Links
  • Articles on Newbies
  • Also by Ville Elomaa
  • Contact author
  • The Fine Print: The following comments are owned by whoever posted them.
    ( Reply )

    Two parts...
    by Chris Withers on Saturday March 30, 10:35AM, 2002
    Firstly, the thing which puts the icons up at the top of the page, which goes in site_header:

    <dtml-in subjects_list>
    <TD>
    <dtml-if "subject_image(_['sequence-item'])">
    <A href="<dtml-var site_url >/index_html?subject=<dtml-var "_['sequence-item']" url_quote>">
    <IMG SRC="<dtml-var site_url >/<dtml-var "subject_image(_['sequence-item'])" url_quote>">
    </A>
    </dtml-if>
    </TD>
    </dtml-in>

    Then there's the bit in index_html where you replace <dtml-if item_list><dtml-in item_list> with:

    <dtml-if "REQUEST.has_key('subject')">
    <dtml-call "REQUEST.set('meta_type','Article')">
    <dtml-call "REQUEST.set('sort_order','reverse')">
    <dtml-call "REQUEST.set('sort_on','created')">
    <dtml-call "REQUEST.set('resultSet',this()(REQUEST=REQUEST,internal=1))">
    <dtml-else>
    <dtml-call "REQUEST.set('resultSet',item_list())">
    </dtml-if>
    <dtml-if resultSet>
    <dtml-in resultSet>
    [ Reply to this ]
    The Fine Print: The following comments are owned by whoever posted them.
    ( Reply )

    Powered by Zope  Squishdot Powered
      "Any system that depends on reliability is unreliable." -- Nogg's Postulate
    All trademarks and copyrights on this page are owned by their respective companies. Comments are owned by the Poster. The Rest ©1999 Butch Landingin, ©2000-2002 Chris Withers.