PDA

View Full Version : Category division on sub-domains [3.03]


Simon
06-22-2006, 07:42 PM
I'm building a free directory site based on phpLD 3.03 - i want to have it split on a couple of sub-domains, with 1 top level category showing on each sub-domain.

I have a separate file installation on each sub-domain, all linked to 1 database. Is there any conditional i can use to only show 1 particular category (and its sub-categories) on a particular sub-domain, but not on the other.

Example:

a.domain.com ---> show category 1 and sub-categories only
b.domain.com ---> show category 2 and sub-categories only

Thanks for any help you can give me! :)

David
06-22-2006, 10:47 PM
This question is beyond me.
At first thought, I don't think there is an easy way since the category folders are virtual.

Simon
06-22-2006, 11:16 PM
What i've done so far is to create 4 top level categories, one for each sub-domain, and then use {if $category.ID eq x} - a different number per sub-domain - around the appropriate sections in the main.tpl, so that it only shows that particular category and its child categories.

That leaves me with sub.domain.com/category for each top level category (which i'd like to reduce to just sub.domain.com), but other than that it appears all to work so far.