Foren

footer problem

kawther JN, geändert vor 11 Jahren.

footer problem

Regular Member Beiträge: 103 Beitrittsdatum: 03.08.12 Neueste Beiträge
Hi,I have a problem with creating a Footer for the portal, I followed the exple mentioned in this link:
http://www.e-kon.be/blog/item/two-ways-to-embed-web-content-in-liferay-themes
I got the Footer embed but not the bottom of the page,I got it in the begining of the page.

In fact I've changed 4 files in the theme:
1-in "portal-normal.vm", I added the following line:
<div id="footer"> $ footerContent </ div>

2 - in "liferay-look-and-feel.xml" I added:
<settings>
<setting key="footer-article-id" value="footer" />
</ settings>

3 - in "init_custom.vm" I added:
# set ($ footerArticleId theme_settings.getProperty = $ ("footer-article-id"))
# set ($ footerContent journalContentUtil.getContent = $ ($ group_id, $ footerArticleId, null, "$ local", $ theme_display))

4 - in "custom.css" I added:
# footer {
position: relative;
margin-top:-150px; / * negative value of footer height * /
height: 150px;
clear: both;
}
As I said the Footer is not in the correct location (bottom of the page), I think the CSS I tried to apply (in # footer) was not applyed correctly, I dont know why.
I am using liferay 6.1

thank you if you can help me.
thumbnail
ramveer singh narwariya, geändert vor 11 Jahren.

RE: footer problem

Junior Member Beiträge: 64 Beitrittsdatum: 13.04.12 Neueste Beiträge
i think we need to change only in portal_normal.vm. i paste portal_normal.vm code . compare your code with this one

<!DOCTYPE html>

#parse ($init)

<html class="#language("lang.dir")" dir="#language("lang.dir")" lang="$w3c_language_id">

<head>
<title>$the_title - $company_name</title>

$theme.include($top_head_include)
</head>

<body class="$css_class">

$theme.include($body_top_include)

#if ($is_signed_in)
#dockbar()
#end

<div id="wrapper">
<a href="#main-content" id="skip-to-content">#language("skip-to-content")</a>

<header id="banner" role="banner">
<div id="heading">
<h1 class="site-title">
<a class="$logo_css_class" href="$site_default_url" title="#language("go-to") $site_name">
<img alt="$logo_description" height="$site_logo_height" src="$site_logo" width="$site_logo_width" />
</a>

#if ($show_site_name)
<span class="site-name" title="#language("go-to") $site_name">
$site_name
</span>
#end
</h1>

<h2 class="page-title">
<span>$the_title</span>
</h2>
</div>

#if (!$is_signed_in)
<a href="$sign_in_url" id="sign-in" rel="nofollow">$sign_in_text</a>
#end

#if ($has_navigation || $is_signed_in)
#parse ("$full_templates_path/navigation.vm")
#end
</header>

<div id="content">
<nav class="site-breadcrumbs" id="breadcrumbs">
<h1>
<span>#language("breadcrumbs")</span>
</h1>

#breadcrumbs()
</nav>

#if ($selectable)
$theme.include($content_include)
#else
$portletDisplay.recycle()

$portletDisplay.setTitle($the_title)

$theme.wrapPortlet("portlet.vm", $content_include)
#end
</div>

<footer id="footer" role="contentinfo">
<p class="powered-by">
#language("powered-by") <a href="http://www.liferay.com" rel="external">Liferay</a>
</p>

</footer>
</div>

$theme.include($body_bottom_include)

</body>

$theme.include($bottom_include)

</html>
thumbnail
ramveer singh narwariya, geändert vor 11 Jahren.

RE: footer problem

Junior Member Beiträge: 64 Beitrittsdatum: 13.04.12 Neueste Beiträge
you can also look on these pages:
http://www.liferay.com/community/forums/-/message_boards/message/18550194