| |||||||
| Register | Projects | FAQ | Members List | Mark Forums Read |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
|
Hi, on the homepage I have the main categories big and the subcategories underneath. 1. Question: Can I use the same format for the following pages for subcategories? Subcategory-1 subsub-1 subsub-2 subsub-3 2. Question: Can I prevent IndexU from cutting off the subcategorie names? thanks a lot macangelo |
| |||
|
your answer 2): fine - that's what I was looking for. Thank you. Question 1): I have to specify my question. I have 2 main categories: one (let's say category id=1) for clubs like sports clubs and one category for companies who want to sell stuff to members of the stuff (let's say category id=2). Now I want to display them in two separate blocks, one should show category id=1 and its subcats, the other should show category id=2 and its subcats: (1. Block) Clubs Golf Clubs, Tennis Clubs, Triathlon, Budo, ... (2. Block) Companies Golf Supplies, Tennis Outfitters, Event Management, ... thanks a lot macangelo |
| ||||
|
First let me explain that you are using terminology that means something totally different on IndexU. In IndexU a "block" is a piece of code that is called from outside the page you are on, to be included on the page. So in essense a block is like a php include. Now, your example basically shows that you want one category listed, then all the subcats listed under that, and then another category listed and then it's subcats. Again you would change this in settings.php and change $cat_columns to 1. This will set the categories to use 1 column, so you can list your cats vertically like in your example. Of course in settings.php you can also change the table width, cellspacing and other characteristics. Check out settings.php and you can see what can be done.
__________________ |
| ||||
|
Allow me to go one step further. Lets say you did not want to show subcats on the index but you did want to show subcats on the browse pages. Then on index.php you would change $category_obj->show_subcat = true; to $category_obj->show_subcat = false; and on browse.php you would change $category_obj->show_subcat = false; to $category_obj->show_subcat = true; Then in settings.php you can change how many subcats appear. IndexU is very configurable, some of the settings are just a little hidden because they aren't really used.
__________________ |
| |||
|
I understand. And I understand it would be difficult to organize the subsubcats under the subcats - except in my special case (see image). For my case this would be my wish: it would just help if the variable $category came with an id. If so I would first list the clubs categories and subcats - I would write "clubs" manually and then list club subcats and subsubcats by using $category_id1 (from the perspective of $category_id1 they would just be cats and subcats), underneath I would write "companies" manually and then list the company subcats and subsubcats by using $category_id2. I assume this $category_id syntax doesn't exist yet or you would have brought it up. Would it be difficult to program it? The advantage of having the id in the template with the category oposed to in the general settings would be that I can have different category listing in the same template. Thanks for listening ![]() best macangelo |
| ||||
|
See the post below, that may help you in your quest. Apply 2 Sorting Styles: Niches and Regions By the way, I don't think there's a single directory script that does SubSubCats on display. There's no real call for it.
__________________ |
| |||
|
Exactly: <%block_category_list parent_id="0" title="Main Category"%> is the logic I used for the side bar successfully. the same I need for the main part of the web category. Let's say I have the following category hierarchy: Clubs (id1) --Golf Clubs (id3) --Tennis Clubs (id4) --Triathlon (id5) --Budo (id6) ----Aikido (id11) ----Judo (id12) ----Karate (id13) ----Kendo (id14) So far I use the variable <%$category%> in the template and I get: Club Golf Clubs, Tennis Clubs, Triathlon Budo If I were able to use at this same place for example <%$category_id6%> and would then get Budo Aikido, Judo, Karate, Kendo (then I wouldn't need subsubcats - I agree, that's an odd idea) Best macangelo |
| |||
|
My problem using blocks here is: the blocks don't show the subcategories of the listed categories. Do you guess it would be of general interest to have <%$category%> with an id, like <%$category_id%>? If not, how much would it cost to have it programmed by nicecoders as a custom work service? best macangelo |
| ||||
|
send an email to custom@nicecoder.com for a quote
__________________ |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Show sites below category name in homepage?? How do i? | eversince | v5.x | 2 | 03-14-2005 02:58 AM |
| Links in category on homepage | bdewijs | v3.2 | 0 | 10-14-2004 01:17 PM |
| Display editors picks on category pages | craven | v3.2 | 1 | 09-29-2003 01:47 AM |
| pick format / hot format display templates | lewisw | v3.2 | 9 | 08-15-2003 03:37 PM |
| Display Order and Display Category Description. | amanda | v5.x | 6 | 11-21-2001 07:21 PM |