rejetto forum
May 25, 2012, 03:29:53 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: This forum is free, you do NOT need to register to post. But you may.
PROBLEMS? QUESTIONS? CLICK HERE!
Fill the survey!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: CSS based on folder name?  (Read 479 times)
0 Members and 2 Guests are viewing this topic.
mudputty
Occasional poster
*
Offline Offline

United States United States

Posts: 12



View Profile WWW
« on: February 10, 2010, 04:55:39 PM »

Is it possible to create the layout based on the directory name that you are in? The post over at "http://www.rejetto.com/forum/index.php/topic,8168.msg1048417.html#msg1048417" got me thinking about having a directory called "Photos", and based on that name, change the layout according to a different CSS file. I was thinking that it would be nice to do something similar with a directory called "Videos" and "Music" as well. Each layout based on the directory's name so that I can tailor the layouts accordingly.

Is such a thing possible? If so then does anyone have any tips and/or examples to help me get started on it?
Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11831


View Profile
« Reply #1 on: February 11, 2010, 03:44:29 AM »

yes, it's possible, and quite easy.
first question: what template you mean to use for this? the default one?
Logged
mudputty
Occasional poster
*
Offline Offline

United States United States

Posts: 12



View Profile WWW
« Reply #2 on: February 12, 2010, 12:54:01 PM »

Yes, the default one. I gota learn it as simple as possible first Smiley
Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11831


View Profile
« Reply #3 on: February 12, 2010, 01:01:34 PM »

right click on the folder "photos" > properties > diff template
and put this text

[+style.css|no log]
body { background:red }
Logged
mudputty
Occasional poster
*
Offline Offline

United States United States

Posts: 12



View Profile WWW
« Reply #4 on: February 12, 2010, 01:09:17 PM »

Well, smother me in cheese and call me a cheese-it, I had no idea about that option. Nice! Thanks for the tip.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!


Google visited last this page May 18, 2012, 12:04:09 PM