Author Topic: Multiple CSS & templates ?  (Read 7873 times)

0 Members and 1 Guest are viewing this topic.

Offline Harry

  • Newbie
  • *
  • Posts: 33
    • View Profile
    • http://7summits.com
Multiple CSS & templates ?
« on: July 12, 2002, 02:51:24 PM »
Hello, thanks for what seems to be a great product!

Before I do a test install, can you let me know if it is possible to have different templates and CSSs per category?

Or do I need to do multiple installs (hope not than people need to register for each category)

Thank a lot, best regards,
Harry
Trips & Expeditions to the 7 summits: the highest mountains on the seven continents. Kilimanjaro, Aconcagua and more!
Check out http://7summits.com

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
Multiple CSS & templates ?
« Reply #1 on: July 13, 2002, 08:47:01 AM »
not yet..
cheers
Nicky
Your first three "must do" before you ask a question ! (© by V@no)
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

nicky.net 4 4images
Signature stolen from mawenzi

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Multiple CSS & templates ?
« Reply #2 on: July 13, 2002, 09:38:21 AM »
See: http://www.4homepages.de/forum/viewtopic.php?p=4259#4259
You can do the same for categories.php and and the template categories.html.

Use this code:

Code: [Select]
if (file_exists(TEMPLATE_PATH."/categories_".$cat_id.".html")) {
  $main_template = "categories_".$cat_id;
}


Greets Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline Harry

  • Newbie
  • *
  • Posts: 33
    • View Profile
    • http://7summits.com
Multiple CSS & templates ?
« Reply #3 on: July 13, 2002, 11:53:44 AM »
Aha!  :)

That's a simple but quite elegant solution. And what's even better: it works  :wink:

First I will have to get the basic template right though and then copy it.

Can you tell me where the {user_box} is being defined? I want to make it a part of my regular menu.

(added:) Also can I define something myself, like {menu} ?

Thanks in advance,
best regards,

Harry
Trips & Expeditions to the 7 summits: the highest mountains on the seven continents. Kilimanjaro, Aconcagua and more!
Check out http://7summits.com

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Multiple CSS & templates ?
« Reply #4 on: July 13, 2002, 12:19:51 PM »
{user_box} is defined at the bottom of "includes/page_header.php". You can register new template variables with:

Code: [Select]
$site_template->register_vars(array(
  "menu" => "Content of menu",
  "variable2" => "Test Test"
));


Greets Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline Harry

  • Newbie
  • *
  • Posts: 33
    • View Profile
    • http://7summits.com
Multiple CSS & templates ?
« Reply #5 on: July 15, 2002, 06:04:51 PM »
Quote from: Jan Sorgalla
{user_box} is defined at the bottom of "includes/page_header.php". You can register new template variables with:

Code: [Select]
$site_template->register_vars(array(
  "menu" => "Content of menu",
  "variable2" => "Test Test"
));


Greets Jan


Danke Schoen Jan,

great support for a great product; I will start hacking away now and hope to share the endresult soon :)

Thanks,
best regards,

Harry
Trips & Expeditions to the 7 summits: the highest mountains on the seven continents. Kilimanjaro, Aconcagua and more!
Check out http://7summits.com