PDA


View Full Version : How do you add a template to a group?


fordp
05-23-2007, 01:20 AM
Is there a way to add a template to a child group? I want to add a custom template for my modules, but I tried adding the style and it goes to custom styles, and I can't get it to go into the vBadvanced CMPS templates?

or does it not have to be there? I tried setting the alt module wrapper to my new template (adv_portal_module_wrapper2) but it doesn't pull it.

Redline
05-23-2007, 02:08 AM
Yeah, it does not have to be there. You can make a small plugin though that will pull it into a group though

fordp
05-23-2007, 04:05 AM
Okay. On my news module, i set the Alternative Module Wrapper Template to adv_portal_module_wrapper2... I then create a new template from the VB style manager called adv_portal_module_wrapper2. When i checked my site, it didnt load the custom wrapper.

is this the proper way to do it?

rootnik
06-01-2007, 12:31 AM
I am having the exact same problem. Custom wrappers do not seem to work in this release :(

edit: I ended up editing the news.php file in the modules directory by replacing adv_portal_module_wrapper with the name of my template.

Not the ideal solution, but it works.

Brian
06-01-2007, 11:32 AM
Looks like I didn't think about applying the module wrapper options to the news or online users modules. Those are a bit unique since they both process 2 modules within the files (news & news archive / online users & buddy list), and have to call the wrapper template within the code, whereas the other modules do not. I'll be sure this is corrected with the next release though.

rootnik
06-02-2007, 05:52 PM
Looks like I didn't think about applying the module wrapper options to the news or online users modules. Those are a bit unique since they both process 2 modules within the files (news & news archive / online users & buddy list), and have to call the wrapper template within the code, whereas the other modules do not. I'll be sure this is corrected with the next release though.

Hey, thanks Brian!