Create and place a moduleposition
When i see for example a webpage then i ask myself how do you place and create a new moduleposition on exact that place of my webpage in joomla ?
THX
Fred
Part two , i put it here because your ANSWER part does not work when i want to send it.
ALL WORKS FINE.
HOW DO YOU CAUSTOMIZE (align,color,font...) THE MODULE.
I KNOW LESS OF CSS/PHP...
MAYBE SOME STANDARD CSS/PHP I CAN USE TO START WITH.
AND WHERE TO PUT THE CREATED FILES.
THX
FRED
Answers (3)
Answered byedi-admin, December 3, 2009
If you were creating a new module position called "mymod", you would place this code in your template's index.php file at the place where you want the module to appear:
[?php if ($this-]countModules('mymod')) : ?]
[div]
[jdoc:include type="modules" name="mymod" style="rounded" /]
[/div]
[?php endif; ?]
Note: I had to change the angled brackets to square brackets so it would render on this page. See the page reference below for the code with the correct brackets.
The 'style="rounded"' attribute is called the "module chrome" and affects the code that is output around the module. The following chrome is included with Joomla. You can also make your own chrome:
* none. Output the raw Module content with no wrapping.
* table. Output the module in a table.
* horz. Output the module as a table inside an outer table.
* xhtml. Output the module wrapped in div tags.
* rounded. Output the module wrapped in nested div tags to support rounded corners.
* outline. Output the module wrapped with a preview border.
For an example of what code each chrome outputs and how it looks, see http://docs.joomla.org/What_is_module_chrome%3F
[?php if ($this-]countModules('mymod')) : ?]
[div]
[jdoc:include type="modules" name="mymod" style="rounded" /]
[/div]
[?php endif; ?]
Note: I had to change the angled brackets to square brackets so it would render on this page. See the page reference below for the code with the correct brackets.
The 'style="rounded"' attribute is called the "module chrome" and affects the code that is output around the module. The following chrome is included with Joomla. You can also make your own chrome:
* none. Output the raw Module content with no wrapping.
* table. Output the module in a table.
* horz. Output the module as a table inside an outer table.
* xhtml. Output the module wrapped in div tags.
* rounded. Output the module wrapped in nested div tags to support rounded corners.
* outline. Output the module wrapped with a preview border.
For an example of what code each chrome outputs and how it looks, see http://docs.joomla.org/What_is_module_chrome%3F
Questioner's reply
I put the code with angled brackets in the Index.php of the template. But the new module position does not appear in the list of module positions when i want to publish a module ?
Answered byedi-admin, December 3, 2009
In that list of module positions, you can type the new name right into the dropdown. (Cool, huh?)
The name wasn't already on the list because that position hasn't been used yet and it's not a standard name.
The name wasn't already on the list because that position hasn't been used yet and it's not a standard name.
I suggest looking at the templates that come with Joomla (Milky Way, Beez and JA Purity), and follow how they are coding the modules in the css and template.
Also, did you see http://www.artisteer.com? You can create Joomla templates online.
Also, did you see http://www.artisteer.com? You can create Joomla templates online.

