Templating
Permalink Browser Info Environment
Hi,
What the best way to go about templating this block? I've seen you have your own options within the css directory. I have both adding my own folder here with copied files, and via the usual way of templating C5 blocks via adding a template to root > blocks > whale_nivo_slider >templates directory. I haven't been successful with either.
Thank you.
What the best way to go about templating this block? I've seen you have your own options within the css directory. I have both adding my own folder here with copied files, and via the usual way of templating C5 blocks via adding a template to root > blocks > whale_nivo_slider >templates directory. I haven't been successful with either.
Thank you.
Type: | Discussion |
---|---|
Status: | New |
for adding new theme (template) to block, follow these steps:
suppose you want to add a theme name 'red'
1- copy/paste one of the folders inside css/themes and rename folder and css file inside it to 'red'.
2- in the css file, rename all the parent classes to new theme name
3- [not necessary for 1.1+] at the block main controller (whale_nivo_slider\blocks\whale_nivo_slider\controller.php), line 23, there is this variable name $themes, contains all the available themes titles. add your new theme title to this array:
and the rest of it, it's pretty obvious...now you can start changing new theme css...