How does module templates work?

I am trying to make a new template for a custom module I purchased.  It is using the system's designboxfirst.  I understand how the template system works for Dolphin and how to override the base template for a custom template.  However, that does not seem to work for modules.  How does the template system for modules work?  For now I simply want to use a new background for designboxfirst that will be picked up from the module's CSS files but it seems to keep reading the css from the base css.  In the meanwhile, I will create a new designbox for the base template and change to that design box until I can learn how module templates work.

Geeks, making the world a better place
Quote · 17 Feb 2013

 

I am trying to make a new template for a custom module I purchased.  It is using the system's designboxfirst.  I understand how the template system works for Dolphin and how to override the base template for a custom template.  However, that does not seem to work for modules.  How does the template system for modules work?  For now I simply want to use a new background for designboxfirst that will be picked up from the module's CSS files but it seems to keep reading the css from the base css.  In the meanwhile, I will create a new designbox for the base template and change to that design box until I can learn how module templates work.

 It works very much the same way.

In each module folder there is a templates folder.

So lets say you have a template named MyTemplate

So for the system you have a new folder in templates named tmpl_MyTemplate

Well you do the same thing in the modules folder. The folder for the boonex ads module for example you create a folder in boonex/ads/templates named tmpl_MyTemplate. Make a copy of the default tmpl_uni folder thats already in there and name it tmpl_Mytemplate.

Then in that folder is a css folder for the css. And the module may have some template files in it's base folder. If not, then it is not using module specific templates.

Then the css is put in the modules CSS file.

Now not all modules use their own boxes. Some of them will use the default system boxes.

There is no rule that says all modules must include their own design boxes, and many don't. In fact it makes it easier to match a module to the rest of the system and template without have to skin each and every module separately by just using the defaults whenever possible.

I can't tell you anymore than that. Without being able to see the site and module in question i cannot tell if it can be over ridden in the way i described.


https://www.deanbassett.com
Quote · 17 Feb 2013

The module was a third party module.  It was using the standard site designBoxFirst.  As you said, I guess so the pages would match the rest of the site.  What I wanted was to template just that page blocks and have the rest  of the site using the site template.  I created a new design box and set the blocks to use that design box; using your block tools which is so much easier than going into the database.

Basically what I wanted was to use the module's template to template just the pages of the modules.  I will look again using your explanation as a guide.

 

Thanks for the info.

Geeks, making the world a better place
Quote · 17 Feb 2013
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.