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

 main


Order of rightbox methods
Squishdot Posted by Bob Dushok on Wednesday October 11, 12:40PM, 2000
from the dept.
I have four Rightbox methods created for boxes (like Previous Articles). How can I set the order they will appear? Currently, one of the least used boxes is displaying at the top of the right column. I would like to move it to the bottom. Thanks!

<  |  >

 

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

    TinyTables?
    by Chris Withers on Wednesday October 11, 06:21PM, 2000
    If you're using TinyTables then you should be abel to tweak the order by tweaking the order of the rows in the TinyTable.

    Hope this helps...

    Chris
    [ Reply to this ]
    Re: Order of rightbox methods
    by Bob Dushok on Wednesday October 11, 06:56PM, 2000
    Thanks! I have TinyTables installed, but I have no idea how to use it :( My boxes are all individual DHTML methods saved in the RightBox folder.

    I did find a way to rearrange the boxes. It's a bit odd, but if I delete all DHTML methods and recreate them in the order I want them to appear they're ordered correctly.

    There must be a better way than this :)

    Bob
    [ Reply to this ]
    • More on TinyTables
      by Chris Withers on Thursday October 12, 09:48AM, 2000
      Did you have TinyTables installed before you created your Squishdot site object?

      Chris

      [ Reply to this ]
      • Re: More on TinyTables
        by Bob Dushok on Thursday October 12, 12:14PM, 2000
        Yes.

        Does this mean the site automatically used TinyTables?

        Bob

        [ Reply to this ]
        • Yup...
          by Chris Withers on Thursday October 12, 12:20PM, 2000
          ...well, it should have done, anyway ;-)

          cheers,

          Chris

          [ Reply to this ]
          • Re: Yup...
            by Darrick Wong on Saturday October 14, 06:49AM, 2000
            Umm...not to ask silly questions, but have you looked at "rightbox_items" in the squishdot installation?

            [ Reply to this ]
          • Re: Yup...
            by Darrick Wong on Saturday October 14, 07:15AM, 2000
            Drat, I pressed the wrong button...meant "Preview" but got "Add" instead...

            Anyway...inside the method "index_html", the script looks for a TinyTable named "rightbox_items". If it finds one, then it writes out the boxes on the right hand side according to whatever's in the TinyTable.

            If it does NOT find a "rightbox_items", then it simply iterates through all the items in "rightbox_methods" and writes them out in whatever order it finds them--which is generally the order in which they were added.

            Incidentally, if you nest Squishdots but forget to specify "rightbox_items" tables for all of the child Squishdots, then Zope automatically takes the "rightbox_items" from the parent Squishdot, thus causing KeyErrors like the ones mentioned in bug #115762. Not entirely sure what happens if you dump a Squishdot into a child folder, although I can imagine similar weirdness.

            Enough of that tangent. Try adding a "rightbox_items" to your Squishdot and see if that helps. The table columns are "box_title box_contents box_url relurl:int" which means you need to have a table of comma separated values such as "Features" (box name), "features" (name of the rightbox_method), "/search?title=Feature&op=articles", (some URL to put at the top), 1 (how many paths to strip off that URL (?))

            Hope that's not too arcane; e-mail me if you want a more thorough explanation.

            [ Reply to this ]
          • Re: Yup...
            by Darrick Wong on Saturday October 14, 07:29AM, 2000
            ...for more info on rightbox_item, read Customizing Squishdot (Part 4). Sorry to make three separate postings in one night; I think I'll stop now.

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