Datafeedr Support Forums  

Go Back   Datafeedr Support Forums > Current Version (V3) Forum > Questions
Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Important - The support forums are now in "read-only" mode as we transition to an alternative help desk solution. Feel free to contact us here with any of your questions or search the forums for an existing solution.
 
 
Thread Tools Search this Thread Display Modes
  #1  
Old January 19th, 2011, 11:40 PM
ayorofrance ayorofrance is offline
 
Join Date: Sep 2010
Posts: 430
Default 3 or 4 column category list

Hi Eric,

I would like to list all my top categories at the bottom of all category pages (and the front page).

This is not too difficult to do, however my category names are fairly short, so I'd like to go with 3 or 4 column...

I gave it a shot hacking the category list code as follows:
Code:
<h2>Our shop categories are:</h2>
<!-- Category List -->
[category.list id='dfcatcol1' before='<div class="cl">' after='</div>']
  <div class="cell col2">
    <div class="bdr">
      <a href="[category.link]" title="[category.name]">[category.name]</a>
      [category.list id='dfcatcol2' before='<div class="cl">' after='</div>']
        <div class="cell col3">
          <div class="bdr">
            <a href="[category.link]" title="[category.name]">[category.name]</a>
            [category.list id='dfcatcol3' before='<ul>' after='</ul>']
              <li>
                <a href="[category.link]" title="[category.name]">[category.name]</a>
                [category.repeat id='dfcatcol3']
              </li>
            [/category.list]
         </div>
       </div>
      [/category.list]
    </div>
  </div>
[/category.list]
<!-- /Category List -->
However that did not produce any good results...

Is there an easy way I can add extra columns?

Thanks!
__________________
WordPress Security - Is your WordPress secure? Get our FREE checklist and find out.

Easy-Email - Access ALL your email accounts with one login & synchronize automatically on all your computers.
  #2  
Old January 20th, 2011, 09:10 AM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Creating multi-column lists is very tricky in general. Usually for multi-column lists to work, you need to know how many items you have in a column before it can work and assign each item in the list specific CSS.

Long articles have been written on how to do this: http://www.alistapart.com/articles/multicolumnlists/

What makes it even more complicated is how to handle child categories.

So the first questions that need to be answered are:
1. are you showing child categories?
2. can you forsake the hierarchical display of your categories
3. how many categories will be displayed
4. are you willing to forget a <ul> list and use a <div>?

Eric
  #3  
Old January 20th, 2011, 10:51 AM
ayorofrance ayorofrance is offline
 
Join Date: Sep 2010
Posts: 430
Default

Hi Eric,

Complicated is not good :-)

But to answer your questions:
1. are you showing child categories?

No - just top level.

2. can you forsake the hierarchical display of your categories

Sure - just need to list the categories hyperlinked.

3. how many categories will be displayed

Probably 30 - 60 eventually... now only 3...

4. are you willing to forget a <ul> list and use a <div>?

No problem...

If it's too hard i'll just do in manually...

Categories won't change too often...

Cheers,

Anders
__________________
WordPress Security - Is your WordPress secure? Get our FREE checklist and find out.

Easy-Email - Access ALL your email accounts with one login & synchronize automatically on all your computers.
  #4  
Old January 20th, 2011, 03:08 PM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Phew... that was a little tricky: http://www.datafeedr.com/forums/showthread.php?t=3730
  #5  
Old January 21st, 2011, 11:21 AM
ayorofrance ayorofrance is offline
 
Join Date: Sep 2010
Posts: 430
Default

You have certainly made it look easy! ;-)

Amazing, Eric... THANKS!
__________________
WordPress Security - Is your WordPress secure? Get our FREE checklist and find out.

Easy-Email - Access ALL your email accounts with one login & synchronize automatically on all your computers.
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error in help text - category list options ayorofrance Problems 1 January 20th, 2011 10:28 AM
Replicate a V1 category list patagonia Problems 4 January 14th, 2011 07:33 PM


All times are GMT -5. The time now is 03:12 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.