![]() ![]() There might be more elegant ways to do this, but I think this will do the trick.Ī great thank you to Per Yngve Berg, who supplied the needed php-code and advice! You saved me a lot of hard work! Now write “artblocktwo” in the module class suffix in the backend and you should have a class called artblocktwo that you can give additional styling. 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) If (in_array($sfx, array('art-nostyle', 'art-block', 'art-article'))) ![]()
0 Comments
Leave a Reply. |