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 September 24th, 2011, 06:35 AM
timgbg timgbg is offline
 
Join Date: Sep 2011
Posts: 6
Default Number of subcategories

Hi,

Is it possible to set an amount of subcategories listed in a row? I would like to have 5 subcategories listed in one row and then the other 5 more in the column next to the first one if you know how I am thinking?
  #2  
Old September 24th, 2011, 09:09 AM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Hi

Yes, this is possible. Edit the template for your Category List and change the value of col2 to col5.



Eric
  #3  
Old September 24th, 2011, 02:16 PM
timgbg timgbg is offline
 
Join Date: Sep 2011
Posts: 6
Default

Hi Eric and thank you for the fast reply,

I am using this simple cat-code

[category.list before='<ul>' after='</ul>']
<li>
<a href="[category.link]" title="[category.name]">[category.name]</a>
</li>
[/category.list]

and I wonder if I somehow can make this show only 5 subcategories in one column?
  #4  
Old September 24th, 2011, 02:22 PM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Hi

That's not going to be as easy as using the other code but if you want to give it a whirl, I suggest you read a few of these articles:

http://www.alistapart.com/articles/multicolumnlists/
http://stackoverflow.com/questions/4...s-into-columns
http://stackoverflow.com/questions/5...spaced-columns

As you will see, it's not that simple. I suggest using this code:

HTML Code:
<!-- Category List -->
[category.list id='dfcatcol1' before='<div class="cl">' after='</div>']
  <div class="cell col5">
    <div class="bdr">
      <a href="[category.link]" title="[category.name]">[category.name]</a>
      <?php /* REMOVE THIS LINE TO ENABLE CATEGORY DESCRIPTIONS
      <br />
      <div class="catdesc">[category.description]</div>
      REMOVE THIS LINE TO ENABLE CATEGORY DESCRIPTIONS */ ?>
      [category.list id='dfcatcol2' before='<ul>' after='</ul>']
        <li>
          <a href="[category.link]" title="[category.name]">[category.name]</a>
          [category.repeat id='dfcatcol2']
        </li>
      [/category.list]
    </div>
  </div>
[/category.list]
<!-- /Category List -->
Eric
 


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
Seeing the subcategories section youngy Questions 9 October 21st, 2011 12:21 PM


All times are GMT -5. The time now is 11:40 PM.


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