Welcome to Squishdot How-To Newbies Squishdot
 post article
 Mailing Lists
 Bug Tracking


How to filter postings?
Squishdot Posted by Moshe Buhboot on Thursday December 28, 06:50AM, 2000
from the dept.
I am trying to setup a portal/content website that will serve a local industry forum using Squishdot. The website should display news (manually entered news feeds), upcomng events and other types of information. The only way I found it reasonable to implement the different type of information was to use the topic subject feature of squishdot. I am trying to filter the display of item_list using the topic subject so that the main page will only display the recent "news" while one of the rightbox items will display upcoming events and another box will display announcements, etc. What's the best approach to do that?

<  |  >


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

    Re: How to filter postings?
    by Darrick Wong on Saturday December 30, 03:59AM, 2000
    I'd suggest creating some DTML methods along these lines: (code shamelessly plagiarized from here and hints are in italics)

    <dtml-call "REQUEST.set('subject','The name of your subject topic here')">
    <dtml-call "REQUEST.set('meta_type','Article')">
    <dtml-call "REQUEST.set('resultSet',this()(REQUEST=REQUEST,internal=1))">
    <dtml-in resultSet>
    Display the item here; see index_html for details on how to display various article elements.

    Then include these DTML methods wherever needed.
    [ Reply to this ]
    • Re: How to filter postings?
      by Moshe Buhboot on Friday January 19, 03:52PM, 2001

      Tried the code you sent in one of the rightbox methods and received the following error:

      Error Type: AttributeError
      Error Value: __call__

      Any thoughts? have you tried the code youself?

      I have zero knowledge in Python and I am still learning the syntax and addressing schemes so your help wil be much appriciated.


      [ 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.