留言板
How to have the classic nav bar?
Hi,
I have a little problem, I'm doing a theme which has "Classic" as parent but the nav bar isn't like the classic bar. Let me show you.
What I want
And what I have
If you have an idea...
Thanks !
I have a little problem, I'm doing a theme which has "Classic" as parent but the nav bar isn't like the classic bar. Let me show you.
What I want
And what I have
If you have an idea...
Thanks !
Juan Gonzalez,修改在9 年前。
RE: How to have the classic nav bar?
Liferay Legend 帖子: 3089 加入日期: 08-10-28 最近的帖子
Hi Qu,
what does your portal_normal.vm contain? You should have "dockbar-split" as one of your css classes applied to <body>:
https://github.com/liferay/liferay-portal/blob/6.2.2-ga3/portal-web/docroot/html/themes/classic/_diffs/templates/init_custom.vm#L1
what does your portal_normal.vm contain? You should have "dockbar-split" as one of your css classes applied to <body>:
https://github.com/liferay/liferay-portal/blob/6.2.2-ga3/portal-web/docroot/html/themes/classic/_diffs/templates/init_custom.vm#L1
Hi Juan,
Yes I have dockbar-split in my CSS class.
Here is my portal_normal.ftl :
I don't have a portal_normal.vm but it is probably cause I use eclipse no?
Thanks !
Yes I have dockbar-split in my CSS class.
Here is my portal_normal.ftl :
<#include init />
" lang="${w3c_language_id}">
<title>${the_title} - ${company_name}</title>
<meta content="initial-scale=1.0, width=device-width" name="viewport">
${theme.include(top_head_include)}
<a href="#main-content" id="skip-to-content"><@liferay.language key="skip-to-content" /></a>
${theme.include(body_top_include)}
<#if is_signed_in>
<@liferay.dockbar />
<!--#if-->
<div class="container-fluid" id="wrapper">
<header id="banner" role="banner">
<div id="heading">
<h1 class="site-title">
<a class="${logo_css_class}" href="${site_default_url}" title="<@liferay.language_format arguments=" ${site_name}" key="go-to-x"></a>">
<img alt="${logo_description}" height="${site_logo_height}" src="${site_logo}" width="${site_logo_width}">
<#if show_site_name>
<span class="site-name" title="<@liferay.language_format objects=" ${site_name}" key="go-to-x"></span>">
${site_name}
<!--#if-->
</h1>
<h2 class="page-title">
<span>${the_title}</span>
</h2>
</div>
<#if !is_signed_in>
<a href="${sign_in_url}" data-redirect="${is_login_redirect_required?string}" id="sign-in" rel="nofollow">${sign_in_text}</a>
<!--#if-->
<#if has_navigation || is_signed_in>
<#include "${full_templates_path}/navigation.ftl" />
<!--#if-->
</header>
<div id="content">
<nav id="breadcrumbs"><@liferay.breadcrumbs /></nav>
<#if selectable>
${theme.include(content_include)}
<#else>
${portletDisplay.recycle()}
${portletDisplay.setTitle(the_title)}
${theme.wrapPortlet("portlet.ftl", content_include)}
<!--#if-->
</div>
<footer id="footer" role="contentinfo">
<p class="powered-by">
<@liferay.language key="powered-by" /> <a href="http://www.liferay.com" rel="external">Liferay</a>
</p>
</footer>
</div>
${theme.include(body_bottom_include)}
${theme.include(bottom_include)}
I don't have a portal_normal.vm but it is probably cause I use eclipse no?
Thanks !
Juan Gonzalez,修改在9 年前。
RE: How to have the classic nav bar?
Liferay Legend 帖子: 3089 加入日期: 08-10-28 最近的帖子
depending if you are using Freemarker (default) or Velocity you will use one file extension or another.
Which files do you have in _diffs/ directory within your theme hierarchy ?
Which files do you have in _diffs/ directory within your theme hierarchy ?
I let it by default so Freemaker.
I only have a custom.css in my _diffs directory.
EDIT : I added
I only have the links without style !
Thanks !
I only have a custom.css in my _diffs directory.
EDIT : I added
#set ($css_class = "${css_class} dockbar-split")
and it works for the menu but how can I get this?I only have the links without style !
Thanks !