where is a tutorial on module class suffix?
Moderator: General Support Moderators
Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
-
- Joomla! Enthusiast
- Posts: 185
- Joined: Wed Nov 29, 2006 8:13 pm
where is a tutorial on module class suffix?
Trying to understand it, im told at times when moving modules around into different module positions, you might have to change the module class suffix, or leave it blank
1. When do you fill that field in?
2. What determines what your type in the field?
3. what modules do you do it on and which ones do you not?
4. If you have moved a module from user4 to user5 and then later you want to move it again, do you have to change the suffix again?
1. When do you fill that field in?
2. What determines what your type in the field?
3. what modules do you do it on and which ones do you not?
4. If you have moved a module from user4 to user5 and then later you want to move it again, do you have to change the suffix again?
- Troubadour
- Joomla! Enthusiast
- Posts: 235
- Joined: Wed Aug 24, 2005 12:51 am
- Location: Melbourne, Australia
- Contact:
Re: where is a tutorial on module class suffix?
Module class suffixes are mostly there to help you assign different styles to modules. So if you've got one style applied (in the css stylesheet) to the standard module cass, but you wanted to create a different look & feel for another module, you'd give it a suffix in the module parameters page and then in your css write the code to determine its style.
The suffix can be anything you want, but for semantic purposes it's probably best to give it something that relates to the style you're wanting to apply.
The suffix can be anything you want, but for semantic purposes it's probably best to give it something that relates to the style you're wanting to apply.
thinksync :: corporate creative media http://www.thinksync.com.au
- DeanMarshall
- Joomla! Hero
- Posts: 2352
- Joined: Fri Aug 19, 2005 2:26 am
- Location: Lancaster, Lancashire, United Kingdom
- Contact:
Re: where is a tutorial on module class suffix?
Typically a Joomla module is a div with a class of .module or a table with a class of .moduletable.
Most templates will cater for these default module classes and will apply a specific style to ALL such modules.
If you want to customise a specific module - or if your template accommodates multiple module styles - then the module class suffix allows you to tell Joomla which style to use for each module.
For example if you have module suffices of 'light', 'dark' and 'mid'
These will be rendered by Joomla as
...
...
...
You will then need CSS for
div.modulelight{ ... }
div.moduledark{ ... }
div.modulemid{ ... }
None of this has any bearing on the specific template position that a module is published to.
It is purely for styling purposes.
So to answer your questions:
1. When? Whenever you want to apply styling other than the default style to a module.
2. What to type? Either a suffix pre-defined within your template, or a 'hand-rolled' style suffix which you will then have to build the style code for.
3. Which modules? Entirely between you, your eye for aesthetics and your template designer.
4. The suffix is (or should be) independent of location within the template.
Hope that helps.
Dean
Most templates will cater for these default module classes and will apply a specific style to ALL such modules.
If you want to customise a specific module - or if your template accommodates multiple module styles - then the module class suffix allows you to tell Joomla which style to use for each module.
For example if you have module suffices of 'light', 'dark' and 'mid'
These will be rendered by Joomla as
...
...
...
You will then need CSS for
div.modulelight{ ... }
div.moduledark{ ... }
div.modulemid{ ... }
None of this has any bearing on the specific template position that a module is published to.
It is purely for styling purposes.
So to answer your questions:
1. When? Whenever you want to apply styling other than the default style to a module.
2. What to type? Either a suffix pre-defined within your template, or a 'hand-rolled' style suffix which you will then have to build the style code for.
3. Which modules? Entirely between you, your eye for aesthetics and your template designer.
4. The suffix is (or should be) independent of location within the template.
Hope that helps.
Dean
Dean Marshall Consultancy - six Joomla experts - http://www.deanmarshall.co.uk/
Joomla Experts - Joomla Support http://www.deanmarshall.co.uk/joomla-se ... pport.html
Joomla Experts - Joomla Support http://www.deanmarshall.co.uk/joomla-se ... pport.html
-
- Joomla! Enthusiast
- Posts: 245
- Joined: Wed Mar 29, 2006 10:13 am
Re: where is a tutorial on module class suffix?
Could you give us an example of what you would put into the suffix box and how you would change the code for the css module
-
- Joomla! Apprentice
- Posts: 20
- Joined: Thu Mar 02, 2006 4:57 pm
Re: where is a tutorial on module class suffix?
For some reason I am struggling with this also. I understand the process and have added banner.moduletable to the css file in order to change the style of the banner area, I have then added as the suffix in the banner module banner.moduletable and nothing has happened. Is the syntax correct for this?April_Floyd wrote: Could you give us an example of what you would put into the suffix box and how you would change the code for the css module
If I work it out myself I will post back an answer.
-
- Joomla! Guru
- Posts: 610
- Joined: Thu Sep 01, 2005 12:22 pm
Re: where is a tutorial on module class suffix?
In your template's css there might be something like this:
Now, you might want to have special styles for moduletables which are on the righthand side of your screen. In your template's css file, you could then insert something like this:
Basically, your "right" modules would then inherit the properties of table.moduletable, and the properties of table.moduletable_right would be added.
In the admin. backend, you'd fill in "_right" as your moduleclass suffix for the modules which you want on the right.
Hope this helps?
Ludo
Code: Select all
table.moduletable {
margin-bottom: 0px;
width: 97%;
background-color: white;
border: 0px solid #6666CC;
color: black;
border: 0px solid #0000ff;
}
Code: Select all
table.moduletable_right {
margin-bottom: 2px;
width: 150px;
background-color: green;
border: 1px solid #6666CC;
color: red;
}
In the admin. backend, you'd fill in "_right" as your moduleclass suffix for the modules which you want on the right.
Hope this helps?
Ludo
Last edited by ludootje on Tue Feb 20, 2007 4:48 pm, edited 1 time in total.
- fairywitch
- Joomla! Intern
- Posts: 87
- Joined: Mon Jan 01, 2007 7:14 pm
- Location: Germany
- Contact:
Re: where is a tutorial on module class suffix?
If you want to style each module individually, you will have to give each of them a class suffix in your css file. Maybe like so:
.moduletable-polls
.moduletable-whosonline
.moduletable-latest
etc., and style each as you want. Like someone said earlier, it's best to use a suffix that relates to what you are styling it for.
Then you would have to take the last part, "-polls", "-whosonline" or "-latest" and put that into the relevant modules as their module class suffix. You don't need the "-" in front, I use that so I can find them quickly in my css file, but the suffix has to be right at the end of .moduletable, no space between.
There are great tutorials out there on template design, here's one: http://www.compassdesigns.net/tutorials ... orial.html
.moduletable-polls
.moduletable-whosonline
.moduletable-latest
etc., and style each as you want. Like someone said earlier, it's best to use a suffix that relates to what you are styling it for.
Then you would have to take the last part, "-polls", "-whosonline" or "-latest" and put that into the relevant modules as their module class suffix. You don't need the "-" in front, I use that so I can find them quickly in my css file, but the suffix has to be right at the end of .moduletable, no space between.
There are great tutorials out there on template design, here's one: http://www.compassdesigns.net/tutorials ... orial.html
+~* http://www.fairywitch.net/*~+ - Blog & some joomla! info
+~* http://beewitched.fairywitch.net*~+ Sims 1 downloads
+~* http://beewitched.fairywitch.net*~+ Sims 1 downloads
-
- Joomla! Apprentice
- Posts: 20
- Joined: Thu Mar 02, 2006 4:57 pm
Re: where is a tutorial on module class suffix?
Thank you guys and gals that was great. I figured it out myself in the end as I have only just come back to this post but thank you for your efforts anyway.
The problem was not the coding but more syntax. Here's what I was going to give back to the community having solved it myself.
At last I have worked out why Module Class Suffix was not working for me, so here goes with a little sharing of knowledge.
My example is with customising the banner module for better spacing and separation within my template.
the css parameter that controls this is table.moduletable in the css file.
First set up a new css look which is called table.moduletable-banner or some other suffix.
The suffix is the -banner on the end. Although the module is looking for table.moduletable to serve up the css, by putting -banner in the Module Class Suffix box within the module it ignores the table.moduletable css entry and goes to the table.moduletable-banner entry.
So long as you use the table.moduletable or the css entry that applies to the module or area that you are modifying and you are able to add a suffix in the admin area, you can add a suffix to the original css entry, as an additional entry in the css file without affecting the rest of the modules.
So recap:
1. Add css entry to your css file by naming it the same as the the existing module class and add the suffix of your choice to the end.
e.g. table.moduletable (original)
table.moduletable-banner (original + your suffix)
Do not delete the original from your css files as other modules may well be using it.
2. In the Site Module : Edit area of the admin panel add -banner to the Module Class Suffix box and your modifications are done.
Fairywitch and ludootje, this is exactly the syntax I was looking for many thanks.
The problem was not the coding but more syntax. Here's what I was going to give back to the community having solved it myself.
At last I have worked out why Module Class Suffix was not working for me, so here goes with a little sharing of knowledge.
My example is with customising the banner module for better spacing and separation within my template.
the css parameter that controls this is table.moduletable in the css file.
First set up a new css look which is called table.moduletable-banner or some other suffix.
The suffix is the -banner on the end. Although the module is looking for table.moduletable to serve up the css, by putting -banner in the Module Class Suffix box within the module it ignores the table.moduletable css entry and goes to the table.moduletable-banner entry.
So long as you use the table.moduletable or the css entry that applies to the module or area that you are modifying and you are able to add a suffix in the admin area, you can add a suffix to the original css entry, as an additional entry in the css file without affecting the rest of the modules.
So recap:
1. Add css entry to your css file by naming it the same as the the existing module class and add the suffix of your choice to the end.
e.g. table.moduletable (original)
table.moduletable-banner (original + your suffix)
Code: Select all
table.moduletable-banner {
border-bottom-width: 1px;
border-bottom-style: solid;
border-bottom-color: #CCCCCC;
width: 97%;
padding-bottom: 12px;
}
2. In the Site Module : Edit area of the admin panel add -banner to the Module Class Suffix box and your modifications are done.
Fairywitch and ludootje, this is exactly the syntax I was looking for many thanks.
Last edited by accuda on Tue Feb 20, 2007 4:50 pm, edited 1 time in total.
-
- Joomla! Apprentice
- Posts: 20
- Joined: Thu Mar 02, 2006 4:57 pm
Re: where is a tutorial on module class suffix?
Just looked at this and and it seems to be one of the better ones that I have seen. Thanks, it is now bookmarked for the next template.fairywitch wrote: There are great tutorials out there on template design, here's one: http://www.compassdesigns.net/tutorials ... orial.html
-
- Joomla! Apprentice
- Posts: 20
- Joined: Thu Mar 02, 2006 4:57 pm
Re: where is a tutorial on module class suffix?
Thanks Ludo, I never thought of it that way and is a great help with an overall style for a particular column that could work well in my case.ludootje wrote:
Basically, your "right" modules would then inherit the properties of table.moduletable, and the properties of table.moduletable_right would be added.
Hope this helps?
Ludo
-
- Joomla! Apprentice
- Posts: 18
- Joined: Tue Dec 15, 2009 3:57 pm
Re: where is a tutorial on module class suffix?
ok i have read all of your posts and i still can't apply module class suffix on my module and i really started to look like this-->
so if aneyone could help me ba making simple css that would change minifrontpage modul or at least tell me what to do
site is http://www.malitisak.hr
so if aneyone could help me ba making simple css that would change minifrontpage modul or at least tell me what to do
site is http://www.malitisak.hr
- Troubadour
- Joomla! Enthusiast
- Posts: 235
- Joined: Wed Aug 24, 2005 12:51 am
- Location: Melbourne, Australia
- Contact:
Re: where is a tutorial on module class suffix?
First of all, have you applied the module suffix in the module parameters?
What are you trying to achieve?
What are you trying to achieve?
thinksync :: corporate creative media http://www.thinksync.com.au
-
- Joomla! Apprentice
- Posts: 18
- Joined: Tue Dec 15, 2009 3:57 pm
Re: where is a tutorial on module class suffix?
i tryed everything
and i would like to make a line that would separate articles in minifrontpage modul.
it is first under dropdown menu...
http://www.malitisak.hr
and i would like to make a line that would separate articles in minifrontpage modul.
it is first under dropdown menu...
http://www.malitisak.hr
- Troubadour
- Joomla! Enthusiast
- Posts: 235
- Joined: Wed Aug 24, 2005 12:51 am
- Location: Melbourne, Australia
- Contact:
Re: where is a tutorial on module class suffix?
Sorry, I can't really see where you mean.
In the module parameters, you can add suffix. If you leave a space before the suffix you will get in your source code something like this:
You can then write into your stylesheet parameters that will target directly that module:
That would do it.
In the module parameters, you can add suffix. If you leave a space before the suffix you will get in your source code something like this:
Code: Select all
<div class="moduletable suffix"> </div>
Code: Select all
div.moduletable.suffix {
border-bottom: 1px dashed #666;
}
thinksync :: corporate creative media http://www.thinksync.com.au
-
- Joomla! Apprentice
- Posts: 18
- Joined: Tue Dec 15, 2009 3:57 pm
Re: where is a tutorial on module class suffix?
thank you for your reply i managed to make it by adding this code
and now the only thing that is bothering me is module class suffix
Code: Select all
.minifp td {
border-right:1px solid;
}
- Troubadour
- Joomla! Enthusiast
- Posts: 235
- Joined: Wed Aug 24, 2005 12:51 am
- Location: Melbourne, Australia
- Contact:
Re: where is a tutorial on module class suffix?
Why do you think you need it?
If you've done what you were trying to do, why do you still need the module suffix?
If you've done what you were trying to do, why do you still need the module suffix?
thinksync :: corporate creative media http://www.thinksync.com.au
-
- Joomla! Apprentice
- Posts: 18
- Joined: Tue Dec 15, 2009 3:57 pm
Re: where is a tutorial on module class suffix?
well i dont need it for that but it is not only change i wanted to make
so i want to understand module class suffix so i can make various changes and stuff
so i want to understand module class suffix so i can make various changes and stuff
- Troubadour
- Joomla! Enthusiast
- Posts: 235
- Joined: Wed Aug 24, 2005 12:51 am
- Location: Melbourne, Australia
- Contact:
Re: where is a tutorial on module class suffix?
Alright. I'm not sure where you're going wrong.
1) Which version of Joomla are you on?
2) What exactly isn't working?
- Can you find the area of the 'parameters' section to insert the module suffix?
- If you do add it to your parameters, is it visible when you 'view source' on your site?
1) Which version of Joomla are you on?
2) What exactly isn't working?
- Can you find the area of the 'parameters' section to insert the module suffix?
- If you do add it to your parameters, is it visible when you 'view source' on your site?
thinksync :: corporate creative media http://www.thinksync.com.au
-
- Joomla! Apprentice
- Posts: 18
- Joined: Tue Dec 15, 2009 3:57 pm
Re: where is a tutorial on module class suffix?
it is joomla 1.5 newstheme template
i have module class suffix box in module
i make a code that would let's say change text colour and whatever i write in module class suffix box
nothing changes..
i have module class suffix box in module
i make a code that would let's say change text colour and whatever i write in module class suffix box
nothing changes..
- Troubadour
- Joomla! Enthusiast
- Posts: 235
- Joined: Wed Aug 24, 2005 12:51 am
- Location: Melbourne, Australia
- Contact:
Re: where is a tutorial on module class suffix?
What are you putting into the module class suffix box?
thinksync :: corporate creative media http://www.thinksync.com.au
-
- Joomla! Apprentice
- Posts: 18
- Joined: Tue Dec 15, 2009 3:57 pm
Re: where is a tutorial on module class suffix?
i tryed
_name -name (space)name
but nothing made difference i also tryed in css making all those changes like
moduletablename moduletable_name.....
_name -name (space)name
but nothing made difference i also tryed in css making all those changes like
moduletablename moduletable_name.....
- Troubadour
- Joomla! Enthusiast
- Posts: 235
- Joined: Wed Aug 24, 2005 12:51 am
- Location: Melbourne, Australia
- Contact:
Re: where is a tutorial on module class suffix?
But did you do both?
You need to set the module suffix and then use css to style the element based on that suffix.
So if you add (space)name to to the module suffix, you then need to 'call' that suffix via css:
.moduletable.name {
border: 1px solid red;
}
You need to set the module suffix and then use css to style the element based on that suffix.
So if you add (space)name to to the module suffix, you then need to 'call' that suffix via css:
.moduletable.name {
border: 1px solid red;
}
thinksync :: corporate creative media http://www.thinksync.com.au
-
- Joomla! Apprentice
- Posts: 18
- Joined: Tue Dec 15, 2009 3:57 pm
Re: where is a tutorial on module class suffix?
ok now this is wierd
i changed text color in red
and i changed colour again to black and inserted background colour but modul stayed on red letters
i changed text color in red
and i changed colour again to black and inserted background colour but modul stayed on red letters
- Troubadour
- Joomla! Enthusiast
- Posts: 235
- Joined: Wed Aug 24, 2005 12:51 am
- Location: Melbourne, Australia
- Contact:
Re: where is a tutorial on module class suffix?
Can I see your code?
thinksync :: corporate creative media http://www.thinksync.com.au
-
- Joomla! Apprentice
- Posts: 18
- Joined: Tue Dec 15, 2009 3:57 pm
Re: where is a tutorial on module class suffix?
Code: Select all
moduletable.pool1{
color:#CCC;
background-color:#cc0000;
}
(space)pool1
- Troubadour
- Joomla! Enthusiast
- Posts: 235
- Joined: Wed Aug 24, 2005 12:51 am
- Location: Melbourne, Australia
- Contact:
Re: where is a tutorial on module class suffix?
Send me a screenshot of the modules and a link to the page on the site where they appear and I'll take a look.
Most likely it's because of the 'cascading' bit in 'cascading style sheets' - there is other css code that specifies the text should be red overriding your code.
Most likely it's because of the 'cascading' bit in 'cascading style sheets' - there is other css code that specifies the text should be red overriding your code.
thinksync :: corporate creative media http://www.thinksync.com.au
-
- Joomla! Apprentice
- Posts: 18
- Joined: Tue Dec 15, 2009 3:57 pm
Re: where is a tutorial on module class suffix?
i found a way to do it witouth class suffix
1-i copy module's style css in template css and change its name (.minifp --> #newname)
2-than in template index.php i copy and paste module i want to change and name it 'newname
and it really works tough it is a bit longer way but i managed to change everything
and now i want to remove those dots before news
site is http://www.malitisak.hr
1-i copy module's style css in template css and change its name (.minifp --> #newname)
2-than in template index.php i copy and paste module i want to change and name it 'newname
and it really works tough it is a bit longer way but i managed to change everything
and now i want to remove those dots before news
site is http://www.malitisak.hr
- Troubadour
- Joomla! Enthusiast
- Posts: 235
- Joined: Wed Aug 24, 2005 12:51 am
- Location: Melbourne, Australia
- Contact:
Re: where is a tutorial on module class suffix?
Yeah, I've got your site, but which specific page? I don't know which link to look at it.
If it's the front page, you need to remove 'border-bottom: 1px dashed #999' from '#bottomcontent a' in template.css
You should be testing in Firefox, using the FireBug extension to track down these sorts of issues.
If it's the front page, you need to remove 'border-bottom: 1px dashed #999' from '#bottomcontent a' in template.css
You should be testing in Firefox, using the FireBug extension to track down these sorts of issues.
thinksync :: corporate creative media http://www.thinksync.com.au
-
- Joomla! Apprentice
- Posts: 18
- Joined: Tue Dec 15, 2009 3:57 pm
Re: where is a tutorial on module class suffix?
wrong not underlines but those black dot's and it is on front page
i am using firebug but those dot's seem to be like ghosts cant find them anywhere
i am using firebug but those dot's seem to be like ghosts cant find them anywhere
- Troubadour
- Joomla! Enthusiast
- Posts: 235
- Joined: Wed Aug 24, 2005 12:51 am
- Location: Melbourne, Australia
- Contact:
Re: where is a tutorial on module class suffix?
You just need to know a little css. The reason you can't see anything in the css is because they are set by default by the browser: it's a list and it automatically has bullet points unless you tell it not to.
So you simply need to find this: #noviid ul li
On line 1537 of template.css
and add this line: list-style-type:none;
So you simply need to find this: #noviid ul li
On line 1537 of template.css
and add this line: list-style-type:none;
thinksync :: corporate creative media http://www.thinksync.com.au