VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: bprevost on June 15, 2013, 14:59:12 PM

Title: Changing my categories layout using the layout from a module within my template
Post by: bprevost on June 15, 2013, 14:59:12 PM
Hi all,

New to this forum, this is great stuff, really like it!

I'm not the most experienced in php and I'm just trying to find a quick way to change my categories layout (I assume its the file html\com_virtuemart\category\default.php). The easy part (I think) is that I've got a module created within my template for all my "Hot deals". The way this module displays my products is exactly the way I want my products layout to be for my category view.

Any suggestions?

Thanks

Title: Re: Changing my categories layout using the layout from a module within my template
Post by: PRO on June 15, 2013, 16:11:18 PM
the best way to do this is to actually change the category layout to have the same style, and html

http://forum.virtuemart.net/index.php?topic=102850.0
Title: Re: Changing my categories layout using the layout from a module within my template
Post by: bprevost on June 16, 2013, 05:56:04 AM
Thanks for the quick reply.  ;D

I've used firebug for identification of CSS source files. This time, however, it seems I need to copy the code from this module php file to my category layout php file. The module code starts with:

<div class="vmgroup<?php echo $params->get ('moduleclass_sfx') ?>">

I'm afraid this is what is throwing me off. I can't seem to find where these parameters are being pulled from. Simply copying the php code is not working out for me...

any ideas?

thanks
Title: Re: Changing my categories layout using the layout from a module within my template
Post by: Stonedfury on June 16, 2013, 08:14:33 AM
That's in the modules XML file. It's the setting for the module. /modules/mod_your_mod/mod_your_module.xml