Forum Moderators: open

Message Too Old, No Replies

Displaying Data in Columns

Like directories do

         

le_gber

5:50 pm on Jul 16, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi,

I wanted to display a list of categories the way portals do it, ie in columns and sorted alphabetically.

I fugured out a way of doing it and was wondering if any expert could have a look at what's follow:

  • ask the dtb to count the number of cat
  • divide the number of cat by 2 and round on the higher
  • loop and display categories until you reach this number
  • then create another cell and carry on until the end

    Now once I've got this sorted, I need to create a inner loop with a filter to display a fixed number of sub cat.

    Does anybody know either a good tutorial explaining how to do it, or is it as straightforward as this and can be done easily?

    Thanks

    Leo

  • txbakers

    11:44 am on Jul 17, 2003 (gmt 0)

    WebmasterWorld Senior Member 10+ Year Member



    it's as straightforward as you describe.

    le_gber

    6:10 pm on Jul 17, 2003 (gmt 0)

    WebmasterWorld Senior Member 10+ Year Member



    yep did it and work fine thanks - even the 3 columns one (/3 and added .2 to always round it above ;) )

    Leo