Joomla Module Style (in Artisteer 2.2)


Author Message
Jakson

Posted: 6/15/2009
Quote message 

I’m a little confused with exactly how the new “support for module class suffixes” works in 2.2 as per the updated info at the bottom of this page:

http://www.artisteer.com/?p=help_joomla

In point 3. It says:

“3. Go to Module Parameters and specify a suffix of your choice in the Module Class Suffix parameter box. You can use one of the available suffixes: art-article, art-block or art-nostyle.”

...and continues:

“If you specify another suffix (not available in the template) the Default Position Style will be applied to your module.”

?? - Does this mean you can utilise Joomla! class suffixes as per this article:

http://docs.joomla.org/Tutorial:Using_Class_Suffixes_in_Joomla!_1.5

?? - OR – do you have to still to modify the index.php file as per David G’s post here:

http://www.artisteer.com/Default.aspx?post_id=107865&p=forum_post

If it is the later can anyone help me with how to do this as even with DG’s tutorial I’m still pretty lost – do you create brand new “block types” (not sure if this is eben the right expression!) in the index.php file and then add as much CSS as you like to the template.css file?

Major thanks, if anyone can point me in the right direction on this.

jak



 
kik-off

Posted: 6/23/2009
Quote message 

Hi, I do something similar. But I got to run the Module Class Suffix in the post-version (2.2.0.16808) inserting in css:
div.moduletable_globalnews, div.module_globalnews { 	background-image:url(http://www.xxx.com/templates/xxx/images/xxx.png); 	background-position:center top; 	background-repeat:no-repeat; 	height:200px; 	font-size:10px; 	color:#545454; 	text-align:right; }
And _globalnews in Joomla module class suffix.
Also insert code somewhere .php file, not remember who was.

I have remade the theme to the latest 2.2 and stopped working :-@. Looking at the differences between the two themes in html/module.php, I have seen that are not equal.

This is the first 35 lines from old theme, thas works:
<?php  // no direct access defined('_JEXEC') or die('Restricted access');  function modChrome_artstyle($module, &$params, &$attribs) { 	$style = isset($attribs['artstyle']) ? $attribs['artstyle'] : 'art-nostyle'; 	$sfx = $params->get('moduleclass_sfx'); 	if (in_array($sfx, array('art-nostyle', 'art-block', 'art-article'))) 		$style = $sfx; 	switch ($style) { 		case 'art-block': 			modChrome_artblock($module, $params, $attribs); 			break; 		case 'art-article': 			modChrome_artarticle($module, $params, $attribs); 			break; 		case 'art-nostyle': 			modChrome_artnostyle($module, $params, $attribs); 			break; 	} }  function modChrome_artnostyle($module, &$params, &$attribs) { if (!empty ($module->content)) : ?> <div class="art-nostyle"> <?php if ($module->showtitle != 0) : ?> <h3><?php echo $module->title; ?></h3> <?php endif; ?> <?php echo $module->content; ?> </div> <?php endif; }


The first 42 lines from remaded theme, not work:
<?php  // no direct access defined('_JEXEC') or die('Restricted access');  function modChrome_artblock($module, &$params, &$attribs) { if (!empty ($module->content)) : ?> <div class="Block">     <div class="Block-tl"></div>     <div class="Block-tr"></div>     <div class="Block-bl"></div>     <div class="Block-br"></div>     <div class="Block-tc"></div>     <div class="Block-bc"></div>     <div class="Block-cl"></div>     <div class="Block-cr"></div>     <div class="Block-cc"></div>     <div class="Block-body">  <?php if ($module->showtitle != 0) : ?> <div class="BlockHeader">     <div class="l"></div>     <div class="r"></div>     <div class="header-tag-icon">         <div class="t"> <?php echo $module->title; ?> </div>     </div> </div> <?php endif; ?> <div class="BlockContent">     <div class="BlockContent-body">  <?php echo $module->content; ?>      </div> </div>       </div> </div>


Also the Footer stopped working properly... :-(

Sorry for my poor english :-/
 
kik-off

Posted: 6/24/2009
Quote message 

Hi, I found my problem. The 2 modules that I have already shown me, changing in the index.php:
This:
<jdoc:include type="modules" name="banner6" style="artstyle" artstyle="art-nostyle" />

For this:
<jdoc:include type="modules" name="banner6" style="xhtml" />

:-{}
I do not understand why so much change in Artistes version after version.
I purchased my copy some time ago (version 1) and i have the impression that Artisteer is always in Beta phase.
I am not an expert in the code, so I bought Atisteer, anyway, thanks to their bugs, I have learned much.

Agian sorry for my poor english :-)
 

Reply


NAME *
EMAIL
SMILIES :-) :( :-D 8-) :*) :-/ :-{} :-X :-O :-@ O:) :-P :-< :-( :-| ;-) 
CODES [Quote] [B] [I] [U] [Code] [IMG] 
BODY *  
VALIDATION *