Login
Register
Menu
Home
Help
Search
rejetto forum
PROBLEMS? QUESTIONS? CLICK HERE!
rejetto forum
»
Software
»
HFS ~ HTTP File Server
»
HTML & templates
»
CSS based on folder name?
CSS based on folder name?
mudputty
·
5 ·
5388
« previous
next »
Print
Pages:
1
0 Members and 1 Guest are viewing this topic.
mudputty
Occasional poster
Posts:
12
CSS based on folder name?
on:
February 10, 2010, 10: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?
rejetto
Administrator
Tireless poster
Posts:
13523
Re: CSS based on folder name?
Reply #1 on:
February 11, 2010, 09:44:29 AM
yes, it's possible, and quite easy.
first question: what template you mean to use for this? the default one?
mudputty
Occasional poster
Posts:
12
Re: CSS based on folder name?
Reply #2 on:
February 12, 2010, 06:54:01 PM
Yes, the default one. I gota learn it as simple as possible first
rejetto
Administrator
Tireless poster
Posts:
13523
Re: CSS based on folder name?
Reply #3 on:
February 12, 2010, 07:01:34 PM
right click on the folder "photos" > properties > diff template
and put this text
[+style.css|no log]
body { background:red }
mudputty
Occasional poster
Posts:
12
Re: CSS based on folder name?
Reply #4 on:
February 12, 2010, 07: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.
Print
Pages:
1
rejetto forum
»
Software
»
HFS ~ HTTP File Server
»
HTML & templates
»
CSS based on folder name?
Search
Username
Password
Always stay logged in
Forgot your password?