Forums | Mahara Themes
General discussion
/
Can we have different themes for different views?
10 March 2009, 20:56
Hi. I think I remember this from reading an old post, but could not find it (didn't tag it in delicious ). Can we have different themes or css atleast for different parts of the site? I have two groups in particular , one with forums, and one just some views, that I want some color coding in the menu and header.
If not, could do same thing based on class or id for different pages, but each page seems to have same?
<body>
10 March 2009, 21:38
Hi - there's a feature request open for doing themes for views, that we might get to look at doing in a few months.
You could probably add a class to each page without too much effort. Look in the smarty() function in lib/web.php in particular, and see if you can assign a smarty var there based on the values of the MENUITEM or SECTION_* constants that are defined on every page. You could use that var as a classname on the <body> tag or similar. If done right, it might even be worth us taking it as a patch upstream
10 March 2009, 22:48
OK. I will try to work on that. I use jquery on my sites, and I am always taking advantage of the highest level class I can find, for grabbing content for other pages, etc.
It might give me a focus point, as I try to learn how everything works.
Thanks,
Jamie