I'd really like to know this...Custom Templates and css
Permalink 1 user found helpful
If you create a custom template in the Blocks folder with blocks/gallery/templates/view.php for example but you want that new template to have its own css that doesn't change with an upgrade, how do you get the custome template to read a custom css file.
I have tried putting the css folder in the templates folder but it continues to read the css file in the packages folder even if you select the alternative template.
Chad Strats addons have the css inside the templates folder but most of the others don't.
I'd really like to know how to sort this out.
Nige
I have tried putting the css folder in the templates folder but it continues to read the css file in the packages folder even if you select the alternative template.
Chad Strats addons have the css inside the templates folder but most of the others don't.
I'd really like to know how to sort this out.
Nige
you could just add it to your theme's css file
Oh is that the official way? I do that already. I just thought there was a nice tidy way of keeping it together like Chads Simple News.
BTW Tony funny you should answer I was just wondering about background images and Superfish.
I have a client who has a particular love of her existing navigation and it uses background images like a lot of css nav.
You can do that with superfish cant you?
N
BTW Tony funny you should answer I was just wondering about background images and Superfish.
I have a client who has a particular love of her existing navigation and it uses background images like a lot of css nav.
You can do that with superfish cant you?
N
welp... basically if you have a block_typeroot/
say chad_news/templates/
then you have a chad_news/templates/clean/view.php, view.css, view.js this would be selectable if you really want to make your users click and select custom template after editing a block and saving it, otherwise you can pass in bFilename and go around that.
This is the standard way of doing this stuff.
say chad_news/templates/
then you have a chad_news/templates/clean/view.php, view.css, view.js this would be selectable if you really want to make your users click and select custom template after editing a block and saving it, otherwise you can pass in bFilename and go around that.
This is the standard way of doing this stuff.