The Joomla! Forum ™





Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 12 posts ] 
Author Message
PostPosted: Mon Dec 17, 2007 9:43 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Wed Oct 04, 2006 4:02 am
Posts: 21
I'm using mod_peliconbar. When I enter the settings, it hasn't got "Module Class Suffix" options. How can I add it?


Top
 Profile  
 
PostPosted: Wed Dec 19, 2007 12:54 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon Dec 25, 2006 3:08 pm
Posts: 19
hi ..
well,  you can`t ...
the problem is, the coder didn`t include any tags that you can apply the style to them ..
in other words, if you want to change the style, you have to do manually, or to edit the code (which will display it the way your style is) ..

:)


Top
 Profile  
 
PostPosted: Wed Dec 19, 2007 1:13 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Wed Oct 04, 2006 4:02 am
Posts: 21
Thanks for answer.

I know that, I ll make it manually.
I added tags, I also added code for databese.

but something I missed.


Top
 Profile  
 
PostPosted: Wed Dec 19, 2007 1:44 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon Dec 25, 2006 3:08 pm
Posts: 19
hi ..
if you want it to appear in the module setting page, then you have to edit the XML file of the module ..
open the XML file and add this between the params
Code:
<param name="moduleclass_sfx" type="text" default="" label="Module Class Suffix" description="A suffix to be applied to the css class of the module (table.moduletable), this allows individual module styling" />


Is that what you want ?!? ???


Top
 Profile  
 
PostPosted: Wed Dec 19, 2007 1:56 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Wed Oct 04, 2006 4:02 am
Posts: 21
Yes I did it.

I also added;

I added to component XML;
Quote:
     
CREATE TABLE `#__peliconbar` (
`moduleclass_sfx` TEXT NOT NULL,
PRIMARY KEY (`id`)
)


but module class suffix doesn^t shown in module options page.


Last edited by obsessio on Wed Dec 19, 2007 2:01 am, edited 1 time in total.

Top
 Profile  
 
PostPosted: Wed Dec 19, 2007 2:15 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon Dec 25, 2006 3:08 pm
Posts: 19
HI

well can you try what i told you ?
in the XML file add the following between params

Code:
<param name="moduleclass_sfx" type="text" default="" label="Module Class Suffix" description="A suffix to be applied to the css class of the module (table.moduletable), this allows individual module styling" />


then in the PHP file add the following :
Code:
$moduleclass_sfx    = $params->get( 'moduleclass_sfx',    '' );



now the value is returned from the database and stored in the $moduleclass_sfx ... so you can use it in the script ...

You dont have to add any quieries in the XML.. they won`t run !?!!!!!!

just do exactly what i told you, and it will work the way you want


Top
 Profile  
 
PostPosted: Wed Dec 19, 2007 2:23 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Wed Oct 04, 2006 4:02 am
Posts: 21
I forgot to say I also did that.

I added

$moduleclass_sfx  = $params->get('moduleclass_sfx'  , '0' );

but I'm trying to yours. without "0"


Top
 Profile  
 
 Post subject: Re: How to add
PostPosted: Wed Mar 05, 2008 9:27 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Thu Nov 08, 2007 10:38 am
Posts: 18
Great,
it worked for me with mod_sectionnav module : simply with xml extra param, the suffix has been added to the moduleclass !
Many thanks.


Top
 Profile  
 
 Post subject: Re: How to add
PostPosted: Mon Jun 08, 2009 6:55 am 
User avatar
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri Mar 28, 2008 6:20 am
Posts: 44
Location: South Australia
Thanks that worked for me too!

_________________
"There is never a lack of money - only a lack of ideas" ~ Robert H Schuller.


Top
 Profile  
 
 Post subject: Re: How to add
PostPosted: Fri Sep 18, 2009 1:46 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Thu Aug 13, 2009 8:17 am
Posts: 11
Yeh works perfectly, thanks


Top
 Profile  
 
PostPosted: Tue Aug 03, 2010 6:40 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Mon Jul 26, 2010 8:37 am
Posts: 3
Thanks the tip works - just change the XML file (towards the bottom) and the PHP code (at or near the top)

Joomla 1.5.20 - thanks


Top
 Profile  
 
 Post subject: Re: How to add
PostPosted: Tue Apr 05, 2011 8:57 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Wed Jul 30, 2008 10:49 am
Posts: 45
Exactly what I was looking for. Perfect! Thanks!


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 12 posts ] 



Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group