Advanced Joomla Templating pt1 Using Module Class Suffix

Below is a MRR and PLR article in category Internet Business -> subcategory Web Design.

AI Generated Image

Advanced Joomla Templating: Part 1 - Using Module Class Suffix


Overview


This tutorial explores how to enhance Joomla templates by utilizing module positions and suffix classes. These techniques will help you create more customizable and styled modules within the Joomla CMS.

Key Concepts


- Joomla
- Template
- CMS
- Module
- Style
- Suffix
- Advanced Templating

Step-by-Step Guide


1. Duplicate Existing Styles


Begin by duplicating the existing styles used for a particular module. Add a suffix to each style name. This typically includes the following styles:

- `.module {}`
- `div.moduletable {}`
- `div.moduletable h3 {}`
- `table.moduletable {}`
- `table.moduletable th`
- `table.moduletable td`

You may also need to duplicate additional styles relevant to your content, such as:

- `ol, ul, li {}`
- `a:link, a:visited, a:hover {}`
- `a.readon:link, a.readon:visited, a.readon:hover {}`

Note: Some modules come with predefined CSS styles, such as "latestnews" and "mostread" lists. You might need to adjust these to allow your suffix to apply correctly.

Example from "Freemambo Template"


```css
table.moduletable {
float: left;
padding: 0px;
margin: 0px;
width: 152px;
background: url(../images/leftright.gif);
}

table.moduletable th {
background: url(../images/subhead_bg.gif);
font-size: 10px;
text-align: center;
padding-top: 4px;
height: 23px;
color:

FFFFFF;

text-transform: uppercase;
}

table.moduletable td {
font-size: 11px;
padding: 0 2px 0 5px;
font-weight: normal;
color:

000000;

}
```

2. Modify the Styles


Make desired changes to the duplicated styles. For example, adding a suffix:

```css
table.moduletableeg {
float: left;
padding: 0px;
margin: 0px;
width: 152px;
}

table.moduletableeg th {
background-color:

FF9900;

color:

333333;

font-size: 12px;
text-align: center;
padding-top: 2px;
height: 23px;
text-transform: lowercase;
}

table.moduletableeg td {
background-color:

EEEEEE;

font-size: 11px;
padding: 0 2px 0 5px;
font-weight: normal;
color:

FF0000;

}
```

3. Update the Module Class Suffix in Joomla


- Navigate to 'Modules' -> 'Site Modules'.
- Select the module to which you wish to apply the new styles.
- Enter the suffix in the 'Module Class Suffix' field and click 'Save'.

By following these steps, you can effectively customize your Joomla modules, creating visually distinct and uniquely styled components for your website.

You can find the original non-AI version of this article here: Advanced Joomla Templating pt1 Using Module Class Suffix.

You can browse and read all the articles for free. If you want to use them and get PLR and MRR rights, you need to buy the pack. Learn more about this pack of over 100 000 MRR and PLR articles.

“MRR and PLR Article Pack Is Ready For You To Have Your Very Own Article Selling Business. All articles in this pack come with MRR (Master Resale Rights) and PLR (Private Label Rights). Learn more about this pack of over 100 000 MRR and PLR articles.”