bartman Posted March 31, 2010 Share Posted March 31, 2010 Is it possible do move the modules into the themes directoryso that if during the year you want to use seasonal thems that you can have differnet module layouts per theme,I know you can set the theme dir in config.inc.php, but not sure what the knock on effect will be Link to comment Share on other sites More sharing options...
rocky Posted April 1, 2010 Share Posted April 1, 2010 Yes, you can override the TPL file of modules by mirroring the path in the theme. For example, you could create two themes with different blockuserinfo.tpls by creating the following files:themes/shop/modules/blockuserinfo/blockuserinfo.tplthemes/christmas/modules/blockuserinfo/blockuserinfo.tplBy doing this, you can simply switch the theme in the Back Office to Christmas without having to worry about editing code every time the season changes. Link to comment Share on other sites More sharing options...
bartman Posted April 1, 2010 Author Share Posted April 1, 2010 many thanks will have a play laterregardschris Link to comment Share on other sites More sharing options...
pasko Posted May 21, 2010 Share Posted May 21, 2010 Hi,I created a "modules" directory under the theme and duplicate a module into it, but it does not appear in the BO.A idea?Thanks. Link to comment Share on other sites More sharing options...
rocky Posted May 22, 2010 Share Posted May 22, 2010 You can't copy an entire module into your theme directory, only the TPL files from a module. You must copy the entire module into the modules directory, then copy the TPL files that you want to change into your theme directory. Link to comment Share on other sites More sharing options...
pasko Posted May 22, 2010 Share Posted May 22, 2010 Hi,I have 3 themes (or more) were only the color is different. I did change the modules CSS to adapt colors for each themes.I did duplicate the modules to have them in the themes with the modified CSS and it is no showing the CSS modifications.If I understand, it is unfortunately, not possible to change the color off a module???Thanks. Link to comment Share on other sites More sharing options...
rocky Posted May 22, 2010 Share Posted May 22, 2010 Sure, just change the colours of the modules in css/global.css in each theme. Each theme should have a different global.css with different colours. If all you are doing is changing module colours, there is no need to duplicate modules or override them. Link to comment Share on other sites More sharing options...
pasko Posted May 22, 2010 Share Posted May 22, 2010 1- I created a directory "modules" under the new theme2- under this "modules" directory, i can put blockuserinfo/blockuserinfo.tpl and make the modifications that will take efects.It is not working is to do the same with a block_module/ css/file.css. Link to comment Share on other sites More sharing options...
rocky Posted May 22, 2010 Share Posted May 22, 2010 That's expected behaviour. You can only override TPL files, not CSS files. You must edit the TPL file to link to the CSS in the theme directory instead of the CSS file in the module directory. Link to comment Share on other sites More sharing options...
pasko Posted May 22, 2010 Share Posted May 22, 2010 Some of my modules has there own css as blocktopmenu, imagesenlarge etc... you can see here with Firebug:www.netshopin.com/netred in the horizontal menu. Link to comment Share on other sites More sharing options...
rocky Posted May 22, 2010 Share Posted May 22, 2010 So you want to have multiple themes with different versions of modules/blocktopmenu/css/superfish-modified.css? To do that, you'll need to copy modules/blocktopmenu/blocktopmenu.tpl to themes/netred/modules/blocktopmenu/blocktopmenu.tpl and then change the following on line 19 from: <link rel="stylesheet" type="text/css" href="{$this_path}css/superfish-modified.css" media="screen"> to: <link rel="stylesheet" type="text/css" href="{$css_dir}superfish-modified.css" media="screen"> This will make the code look for themes/netred/css/superfish-modified.css instead of modules/blocktopmenu/css/superfish-modified.css. Link to comment Share on other sites More sharing options...
pasko Posted May 22, 2010 Share Posted May 22, 2010 Thanks Rocky,I does not work yet:The root with default template is www.netshopin/netred/There you can choose to run another template from the top left or right column.Please choose the netpink template and see what happens after I changed the code to <link rel="stylesheet" type="text/css" href="{$css_dir}superfish-modified.css" media="screen"> in: themes/netpink/modules/blocktopmenu/blocktopmenu.tplThe text appears but not the layout. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now