文档
Liferay提供丰富知识资源,协助我们的社区与我们的技术更好地结合、应用。
Portal Predefined Settings
The portal defines some settings that allow the theme to determine certain behaviors. So far there are only two predefined settings but this number may grow in the future. These settings can be modified from liferay-look-and-feel.xml.
portlet-setup-show-borders-default
If set to false, the portal will turn off borders by default for all the portlets. The default is true.
Example:
<settings>
<setting key="portlet-setup-show-borders-default" value="false" />
</settings>
This default behavior can be overridden for individual portlets using:
• liferay-portlet.xml
• Portlet CSS popup setting
bullet-style-options
This setting is used by the Navigation portlet to determine the CSS class name of the list of pages. The value must be a comma separated list of valid bullet styles to be used.
Example:
<settings>
<setting key="bullet-style-options" value="classic,modern,tablemenu" />
</settings>
The bullet style can be changed by the user in the Navigation portlet configuration. The chosen style will be applied as a CSS class on the <div> containing the navigation. This class will be named in the following pattern:
.nav-menu-style-{BULLET_STYLE_OPTION} {
... CSS selectors ...
}
Here is an example of the HTML code that you would need to add style through CSS code. In this case the bullet style option is modern:
<div class="nav-menu nav-menu-style-modern">
<ul class="breadcrumbs lfr-component">
...
</ul>
</div>
Using CSS and/or some unobtrusive Javascript it's possible to implement any type of menu.