ModChrome_artblocktwo($module, $params, $attribs) Īnd then add this to the file (modules.php):įunction modChrome_artblocktwo($module, &$params, &$attribs) In earlier versions I believe it is set to art-nostyle if not if your problem isn’t solved yet, I think the following might work:Īdd this text to the “function modChrome_artstyle” in your modules.php-file: In the latest versions of Artisteer the module class is set to the default position style (art-block, art-article, art-nostyle) if you supply a module class suffix that is not supported in the template/by Artisteer. If the module in question has another default position, it probably will be the art-article or art-nostyle modCrome function, that should be changed. Showtitle != 0) ? $module->title : '', $module->content) Īfter entering “ whiteblock” as a module class suffix in the backend of Joomla, I now have a module class “art-block whiteblock” that I can use for additional styling in my CSS. In my "template/html/modules.php-file I have changed the modCrome_artblock function from this:įunction modChrome_artblock($module, &$params, &$attribs) However, inspired by the advice from Per Yngve Berg, I have found a solution, that might work for others as well. I am using the latest version of Artisteer, so my modules.php-file looks different than the one above, and also my problem was slightly different: I wanted to add a module class suffix to a module that was placed in the left-position, which means that it has the art-block-style as default style. I have been following this thread with great interest.
ModChrome_artnostyle($module, $params, $attribs) įunction modChrome_artnostyle($module, &$params, &$attribs)Įcho artxBlock(($module->showtitle != 0) ? $module->title : '', $module->content) įunction modChrome_artarticle($module, &$params, &$attribs)Įcho artxPost(($module->showtitle != 0) ? $module->title : '', $module->content) Ĭould you show me how to duplicate art-block and make an art-block2 to be able to style it? Maybe this might work? ModChrome_artarticle($module, $params, $attribs) ModChrome_artblock($module, $params, $attribs) Note : You can enter several Module class suffix.If (in_array($sfx, array('art-nostyle', 'art-block', 'art-article'))) Note : If you choose a background color, the color of module title is always white. With the module class suffix "badge-new", "badge-free", "badge-hot", "badge-top", "badge-news", "badge-gift" : to display a badge in the upper right corner of your module.With the Module class suffix "title-band" : display a dark background under the module title (you can't put "title-centered" in the same module).With the Module class suffix "text-centered" : the text and title are centered.And the background color under the title work perfectly only if you don't choose a transparent background for your content box. The line isn't displayed with the position "user7", "user8" and "user9. With the Module class suffix "title-centered" : the module title is centered with a line on each side (you can't put "title-band" in the same module).Example " color-maroon" or " color-green" With the module class suffix "color-XX" : you add a background color for your module.With the module class suffix " shadow" : you add a shadow under the module.With the module class suffix " radius" : you add a rounded corner.With the module class suffix " border" : you add a border around your module.It's useful if you want displayed an image in a Custom HTML module. With the module class suffix " no-margin" : you remove the margin inside your module.More details on the page " Display your menus".
With the module class suffix " vertical-menu" or " horizontal-menu" : to display an additionnal menu.Without module class suffix : No styling for your list and the links.Options for displaying your modules in the "left", "top", "bottom" or "user" positions :