PDA

View Full Version : About category columns?


Romario
09-06-2005, 07:05 PM
Sorry, my English is no good.
How make 1 categories columns in main categories in index.php and 2 columns in subcategory pages.

kickass
09-08-2005, 02:40 PM
This would be difficult, if not impossible, to achieve, since both use the same template.

vkaryl
09-08-2005, 05:37 PM
I *think* it might be possible by setting up a separate template page for the subcategory pages, then doing an if-else statement, something like "if_home" in wp.... but I am decidedly NOT a programmer, so I don't actually know if this is possible.

If it were me, Romario, I'd check with the smarty folks at http://www.phpinsider.com/smarty-forum/index.php - that's the forum for the templating engine phpLD uses.

Ap0s7le
09-08-2005, 06:06 PM
Hello Romario,

I believe I know what you want, but could you provide a sample of what you're looking for?

Thanks

-Casey

Romario
09-09-2005, 12:23 PM
Hello Ap0s7le!!!

Example:

Categogies in index page (1 category column):

Auto/Moto (6)
Racing, Rally, Formula 1, Motocross, Auto Clubs, Street Racing...

Business (4)
Accounting, Business Consulting, Business Directories, Business News...

And More categories...


Click Auto/Moto category, all subcategoties will be in 2 columns:


Example:

MySite >> Auto/Moto

Racing (0)............................Motocross (0)
Rally (0)..............................Auto Clubs (0)
Formula 1 (0).......................Street Racing (0)



Your understand me?[/code]

Ap0s7le
09-09-2005, 05:48 PM
Hello Romario,

Yes I understand, and it's what I thought too just wanted to confirm.

I've got to go to town, but when I get back I'll see about doing this for you. Doesn't sound to hard like the posters above suggested.

later

Ap0s7le
09-09-2005, 06:11 PM
Yo Romario,

I decided to do this before I left.

Open up templates/main.tpl

Find
Content visible to registered users only.

Replace with
Content visible to registered users only.

Romario
09-09-2005, 06:18 PM
Cool!!! It's work!!! Ap0s7le Big Thanks. :)

kickass
09-09-2005, 08:38 PM
gee. a table. why does this not surprise me? at least it can be hacked to work with better xhtml/css . . .

Ap0s7le
09-09-2005, 09:36 PM
You're welcome :)

BJ, you offered nothing to the thread in the first place so please don't criticize me. Next time before posting please stop and think "Am I going to help this person?" If the answer is no, don't waste our time.

Thanks

PS
I didn't add a table ;)