10376 Posts in 2191 Topics by 1708 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1095 Views |
-
Proper way to customize module templates and css?

5 June 2010 at 8:54am Last edited: 5 June 2010 8:55am
Hi,
I once customized the PageComments template by copying the .ss file to the themes/mysite/templates folder and made my changes there--Worked great, and upgrading should be no problem now. However, the next time I tried to do this was with a template from a module (the blog module if I remember right). This did not work. What is the proper way to do this so upgrading a module is less painful? What about for custom .css files?
Thanks!
-
Re: Proper way to customize module templates and css?

5 June 2010 at 9:19am
Any template that is in your theme dir will override one in a module directory, so in your theme dir, just create BlogHolder.ss, for instance.
Same with CSS.. provided the module loads the CSS with themedCSS(), you can just put your own stylesheet in your theme dir..
Requirements::themedCSS('Blog'); will look for Blog.css first in your theme dir, then fall back on the module.
-
Re: Proper way to customize module templates and css?

29 June 2010 at 10:16am
Maybe it's just me but I'm having issues getting this to work with the TagCloud widget... I've tried putting my own tagcloud stylesheet in my theme directory as well as my theme_blog directory aswell as in a css directory in the both of those, and everytime it would always include the default one from the module. What am I missing. Does it maybe have something to do with the widget adding the stylesheet via
Requirements::css("blog/css/tagcloud.css");
instead of
Requirements:: themedCSS("blog/css/tagcloud.css");
??
| 1095 Views | ||
|
Page:
1
|
Go to Top |


