Go Back   NiceCoder Community Forums > Nicecoder Products > IndexU > INDEXU DELUXE v1.x
Register Projects FAQ Members List Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-10-2008, 11:25 AM
Registered User
 
Join Date: Jan 2007
Location: Düsseldorf, Germany
Posts: 52
macangelo is on a distinguished road
Default Can I use format of category display from homepage on other pages?

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
Reply With Quote
  #2 (permalink)  
Old 11-10-2008, 11:44 AM
Bruceper's Avatar
Nicecoder Team
 
Join Date: Jun 2002
Location: Winnipeg Canada
Posts: 4,032
Bruceper is on a distinguished road
Default

Yes you can use the same categories format in subcats. I cant remember 100% but I'm pretty sure that would be in category.class.php

As for "cutting off subcat names" I can only assume you mean limiting the number of subcats that are displayed. To change the number of subcats that are displayed with a category you can edit setting.php and change $max_sub_cat to whatever value you want.
Reply With Quote
  #3 (permalink)  
Old 11-10-2008, 12:15 PM
Registered User
 
Join Date: Jan 2007
Location: Düsseldorf, Germany
Posts: 52
macangelo is on a distinguished road
Default

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
Reply With Quote
  #4 (permalink)  
Old 11-10-2008, 12:58 PM
Bruceper's Avatar
Nicecoder Team
 
Join Date: Jun 2002
Location: Winnipeg Canada
Posts: 4,032
Bruceper is on a distinguished road
Default

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.
Reply With Quote
  #5 (permalink)  
Old 11-10-2008, 02:09 PM
Registered User
 
Join Date: Jan 2007
Location: Düsseldorf, Germany
Posts: 52
macangelo is on a distinguished road
Default

Great, that helped a lot already. Thanks.

Is there a way to show the second sublevel of categories?

like this:

thanks a lot

macangelo
Reply With Quote
  #6 (permalink)  
Old 11-10-2008, 02:31 PM
Bruceper's Avatar
Nicecoder Team
 
Join Date: Jun 2002
Location: Winnipeg Canada
Posts: 4,032
Bruceper is on a distinguished road
Default

Yes you can. In browse.php change

$category_obj->show_subcat = false;

to

$category_obj->show_subcat = true;
Reply With Quote
  #7 (permalink)  
Old 11-10-2008, 02:35 PM
Bruceper's Avatar
Nicecoder Team
 
Join Date: Jun 2002
Location: Winnipeg Canada
Posts: 4,032
Bruceper is on a distinguished road
Default

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.
Reply With Quote
  #8 (permalink)  
Old 11-10-2008, 04:18 PM
Registered User
 
Join Date: Jan 2007
Location: Düsseldorf, Germany
Posts: 52
macangelo is on a distinguished road
Default

You are about to become my hero!

One more thing - can I show 3 levels on the homepage, for example:
Categorie = Clubs, SubCat = Budo, SubSubCat = Aikido ...

thanks a lot

macangelo
Reply With Quote
  #9 (permalink)  
Old 11-10-2008, 05:33 PM
Bruceper's Avatar
Nicecoder Team
 
Join Date: Jun 2002
Location: Winnipeg Canada
Posts: 4,032
Bruceper is on a distinguished road
Default

That I've never tried, and I don't think it's possible because there is no function of ""subsubcat" or anything like it.
Reply With Quote
  #10 (permalink)  
Old 11-11-2008, 12:47 AM
Registered User
 
Join Date: Jan 2007
Location: Düsseldorf, Germany
Posts: 52
macangelo is on a distinguished road
Default

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
Reply With Quote
  #11 (permalink)  
Old 11-11-2008, 12:55 AM
Bruceper's Avatar
Nicecoder Team
 
Join Date: Jun 2002
Location: Winnipeg Canada
Posts: 4,032
Bruceper is on a distinguished road
Default

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.
Reply With Quote
  #12 (permalink)  
Old 11-11-2008, 01:12 AM
Registered User
 
Join Date: Jan 2007
Location: Düsseldorf, Germany
Posts: 52
macangelo is on a distinguished road
Default

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
Reply With Quote
  #13 (permalink)  
Old 11-11-2008, 04:05 AM
Bruceper's Avatar
Nicecoder Team
 
Join Date: Jun 2002
Location: Winnipeg Canada
Posts: 4,032
Bruceper is on a distinguished road
Default

You can remove %$category% and use the blocks instead. But there are no switches for $category
Reply With Quote
  #14 (permalink)  
Old 11-11-2008, 04:12 AM
Registered User
 
Join Date: Jan 2007
Location: Düsseldorf, Germany
Posts: 52
macangelo is on a distinguished road
Default

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
Reply With Quote
  #15 (permalink)  
Old 11-11-2008, 04:33 AM
Bruceper's Avatar
Nicecoder Team
 
Join Date: Jun 2002
Location: Winnipeg Canada
Posts: 4,032
Bruceper is on a distinguished road
Default

send an email to custom@nicecoder.com for a quote
Reply With Quote
Reply

Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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

HACKER SAFE certified sites prevent over 99.9% of hacker crime.

All times are GMT -5. The time now is 06:49 PM.


Powered by vBulletin®
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO
SSL Certificate