Standard Module Chromes: Difference between revisions

From Joomla! Documentation

Cmb (talk | contribs)
Simply added a placeholder for the html5 chrome in the fervent hope that some one fills it in.
Tom Hutchison (talk | contribs)
m update
Line 5: Line 5:
{| style="width:100%" class="wikitable"
{| style="width:100%" class="wikitable"
|+ '''Comparison of the Joomla! 1.5/1.6 standard Module chromes'''
|+ '''Comparison of the Joomla! 1.5/1.6 standard Module chromes'''
!Style
!width="100" | Style
!Output
!Output
!width="204" | Appearance
!width="210" | Appearance
|-
|-
!rounded<br />(default for menus on milkyway)
!rounded<br />(default for menus on milkyway)
Line 92: Line 92:
</div>
</div>
</source>
</source>
|
|[[Image:Module_chrome_xhtml.png]]
[[Image:Module_chrome_xhtml.png]]
|-
|-
!html5
!html5
|
|<!--- leave as html4strict/html5 not available yet --->
<source lang="html4strict">
<source lang="html4strict">
</source>
</source>
|
|[[Image:Module_chrome_html5.png]]
[[Image:]]
|-
|-
!outline
!outline
|
|<source lang="html4strict">
<source lang="html4strict">
<div class="mod-preview">
<div class="mod-preview">
   <div class="mod-preview-info">left[outline]</div>
   <div class="mod-preview-info">left[outline]</div>
Line 114: Line 112:
</div>
</div>
</source>
</source>
|
|[[Image:Module_chrome_outline.png]]
[[Image:Module_chrome_outline.png]]
|}
|}



Revision as of 01:13, 28 July 2014

This Article Needs Your Help

This article is tagged because it NEEDS UPDATING. You can help the Joomla! Documentation Wiki by contributing to it.
More pages that need help similar to this one are here. NOTE-If you feel the need is satistified, please remove this notice.

Reason: References to 1.5 and 1.6.


Note that this example includes class additions because the examples are taken using mod_mainmenu. The suffix "_menu" to the div class and the "menu" class on the ul tag are not present with other modules.

Comparison of the Joomla! 1.5/1.6 standard Module chromes
Style Output Appearance
rounded
(default for menus on milkyway)
<div class="module_menu">
  <div>
    <div>
      <div>
        <h3>Main Menu</h3>
        <ul class="menu">
          <li><!-- various menu items --></li>
        </ul>
      </div>
    </div>
  </div>
</div>

none
<ul class="menu">
  <li><!-- various menu items --></li>
</ul>

table
<table cellpadding="0" cellspacing="0" class="moduletable_menu">
  <tr>
    <th valign="top">Main Menu</th>
  </tr>
  <tr>
    <td>
      <ul class="menu">
        <li><!-- various menu items --></li>
      </ul>
    </td>
  </tr>
</table>

horz
<table cellspacing="1" cellpadding="0" border="0" width="100%">
  <tr>
    <td valign="top">
      <table cellpadding="0" cellspacing="0" class="moduletable_menu">
        <tr>
          <th valign="top">Main Menu</th>
        </tr>
        <tr>
          <td>
            <ul class="menu">
              <li><!-- various menu items --></li>
            </ul>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>

xhtml
<div class="moduletable_menu">
  <h3>Main Menu</h3>
  <ul class="menu">
    <li><!-- various menu items --></li>
  </ul>
</div>
html5
outline
<div class="mod-preview">
  <div class="mod-preview-info">left[outline]</div>
  <div class="mod-preview-wrapper">
    <ul class="menu">
      <li><!-- various menu items --></li>
    </ul>
  </div>
</div>

Note that the Module chrome doesn't necessarily change the appearance all that much - this depends on the CSS used in the template. For example, the 'none' and 'horz' chromes look very similar, although the underlying HTML code is very different.