Foren
PROBLEM WITH ADDING CHILD PAGE
Anitha Yadav, geändert vor 12 Jahren.
PROBLEM WITH ADDING CHILD PAGE
New Member Beiträge: 4 Beitrittsdatum: 19.04.11 Neueste Beiträge
Hi Hitoshi, i am new to liferay, i had tried to add child page to my theme,i am not getting the child page display as it comes in the default theme but its taking in separate navigation, can you please guide me how to add a child page........ here is the code of my theme can you please check it out and let me know have made any changes in this.....
/* ---------- Global ---------- */ body { background-color: #EEF0F2; color: black; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; margin: 10px 10px; margin-top: 10px; margin-right: 10px; margin-bottom: 10px; margin-left: 10px; padding: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; } a { color: #D05B00; } a:hover, a:focus { color: #06C; } .obscured, #skip-to-content, #heading .company-title span, #heading .community-title, #heading .page-title, #navigation h1, #breadcrumbs h1 { clip: rect(0 0 0 0); position: absolute; } /* ---------- Wrapper ---------- */ #wrapper { margin: 43px auto; position: relative; width: 940px; } /* ---------- Skip to content ---------- */ #skip-to-content:focus { left: auto; right: 0; top: -2.4em; } /* ---------- Banner ---------- */ #heading { background: url(/image/layout_set_logo?img_id=19401&t=1302603678088) no-repeat; display: block; font-size: 0; padding: 8px 0; padding-top: 8px; padding-right: 0px; padding-bottom: 8px; padding-left: 0px; height: 168px; text-indent: -9999em; width: 925px; } #heading .company-title { margin: 0; } /* ---------- Sign In ---------- */ #sign-in { background: url(../images/custom/login_icon.png) no-repeat 3px 50%; font-weight: bold; position: absolute; right: 0; top: -1em; } /* ---------- Navigation ---------- */ #navigation { position: absolute; right: 0; top: 11px; } #navigation ul { background-color: #BBB; width: 924px; border: 1px solid skyblue; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 3px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: white; border-right-color: white; border-bottom-color: white; border-left-color: white; display: block; top: 164px; position: absolute; margin: 0px 0px 0px 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; height: 40px; padding: 3px 0px 0px 0px; padding-top: 3px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; text-align: center; text-transform: uppercase; left: -941px; } #navigation li, #navigation a { display: inline-block; position: relative; } .ie6 #navigation li, .ie7 #navigation li, .ie6 #navigation a, .ie7 #navigation a { display: inline; zoom: 1; } #navigation a { color: black; outline: 0; padding: 11px 13px; text-decoration: none; } #navigation .selected a, #navigation a:hover, #navigation a:active, #navigation a:focus { color: black; } #navigation a:active, #navigation a:focus { -moz-border-radius: 3px; -webkit-border-radius: 3px; background-color: #154661; background-image: -moz-linear-gradient(#1D4663, #154661); background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0.0, #1D4663), color-stop(1.0, #154661)); border-radius: 3px; filter: progidXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr='#1D4663', EndColorStr='#154661'); } #navigation a:active span, #navigation a:focus span { position: relative; top: 2px; } /* ---------- Layout ---------- */ .portlet-column-content { padding: 0 10px 20px; } .portlet-column-content-first, .portlet-column-content-only { padding-left: 0; } .portlet-column-content-last, .portlet-column-content-only { padding-right: 0; } /* ---------- Portlet ---------- */ .portlet .portlet-topper { -moz-border-radius: 4px; -webkit-border-radius: 4px; background-color: #215172; border-radius: 4px; font-weight: bold; list-style: none; margin: 0; padding: 0; } .portlet .portlet-topper-toolbar { right: 6px; top: 7px; }
/* ---------- Global ---------- */ body { background-color: #EEF0F2; color: black; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; margin: 10px 10px; margin-top: 10px; margin-right: 10px; margin-bottom: 10px; margin-left: 10px; padding: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; } a { color: #D05B00; } a:hover, a:focus { color: #06C; } .obscured, #skip-to-content, #heading .company-title span, #heading .community-title, #heading .page-title, #navigation h1, #breadcrumbs h1 { clip: rect(0 0 0 0); position: absolute; } /* ---------- Wrapper ---------- */ #wrapper { margin: 43px auto; position: relative; width: 940px; } /* ---------- Skip to content ---------- */ #skip-to-content:focus { left: auto; right: 0; top: -2.4em; } /* ---------- Banner ---------- */ #heading { background: url(/image/layout_set_logo?img_id=19401&t=1302603678088) no-repeat; display: block; font-size: 0; padding: 8px 0; padding-top: 8px; padding-right: 0px; padding-bottom: 8px; padding-left: 0px; height: 168px; text-indent: -9999em; width: 925px; } #heading .company-title { margin: 0; } /* ---------- Sign In ---------- */ #sign-in { background: url(../images/custom/login_icon.png) no-repeat 3px 50%; font-weight: bold; position: absolute; right: 0; top: -1em; } /* ---------- Navigation ---------- */ #navigation { position: absolute; right: 0; top: 11px; } #navigation ul { background-color: #BBB; width: 924px; border: 1px solid skyblue; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 3px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: white; border-right-color: white; border-bottom-color: white; border-left-color: white; display: block; top: 164px; position: absolute; margin: 0px 0px 0px 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; height: 40px; padding: 3px 0px 0px 0px; padding-top: 3px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; text-align: center; text-transform: uppercase; left: -941px; } #navigation li, #navigation a { display: inline-block; position: relative; } .ie6 #navigation li, .ie7 #navigation li, .ie6 #navigation a, .ie7 #navigation a { display: inline; zoom: 1; } #navigation a { color: black; outline: 0; padding: 11px 13px; text-decoration: none; } #navigation .selected a, #navigation a:hover, #navigation a:active, #navigation a:focus { color: black; } #navigation a:active, #navigation a:focus { -moz-border-radius: 3px; -webkit-border-radius: 3px; background-color: #154661; background-image: -moz-linear-gradient(#1D4663, #154661); background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0.0, #1D4663), color-stop(1.0, #154661)); border-radius: 3px; filter: progidXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr='#1D4663', EndColorStr='#154661'); } #navigation a:active span, #navigation a:focus span { position: relative; top: 2px; } /* ---------- Layout ---------- */ .portlet-column-content { padding: 0 10px 20px; } .portlet-column-content-first, .portlet-column-content-only { padding-left: 0; } .portlet-column-content-last, .portlet-column-content-only { padding-right: 0; } /* ---------- Portlet ---------- */ .portlet .portlet-topper { -moz-border-radius: 4px; -webkit-border-radius: 4px; background-color: #215172; border-radius: 4px; font-weight: bold; list-style: none; margin: 0; padding: 0; } .portlet .portlet-topper-toolbar { right: 6px; top: 7px; }
venkateshwarlu racha, geändert vor 12 Jahren.
RE: PROBLEM WITH ADDING CHILD PAGE
Junior Member Beiträge: 52 Beitrittsdatum: 26.07.09 Neueste Beiträge
Did u add childpage VM code in your template file?
Anitha Yadav, geändert vor 12 Jahren.
RE: PROBLEM WITH ADDING CHILD PAGE
New Member Beiträge: 4 Beitrittsdatum: 19.04.11 Neueste Beiträge
No i did not wrote any code for child page...
venkateshwarlu racha, geändert vor 12 Jahren.
RE: PROBLEM WITH ADDING CHILD PAGE
Junior Member Beiträge: 52 Beitrittsdatum: 26.07.09 Neueste BeiträgeAnitha Yadav:
No i did not wrote any code for child page...
Ok can you paste your navigation.vm file code here?
Anitha Yadav, geändert vor 12 Jahren.
RE: PROBLEM WITH ADDING CHILD PAGE
New Member Beiträge: 4 Beitrittsdatum: 19.04.11 Neueste Beiträge
<nav class="sort-pages modify-pages" id="navigation">
<h1>
<span>#language("navigation")</span>
</h1>
<ul>
#foreach ($nav_item in $nav_items)
#if ($nav_item.isSelected())
<li class="selected">
#else
<li>
#end
<a href="$nav_item.getURL()" $nav_item.getTarget()><span>$nav_item.icon() $htmlUtil.escape($nav_item.getName())</span></a>
#if ($nav_item.hasChildren())
<ul class="child-menu">
#foreach ($nav_child in $nav_item.getChildren())
#if ($nav_child.isSelected())
<li class="selected">
#else
<li>
#end
<a href="$nav_child.getURL()" $nav_child.getTarget()>$nav_child.getName()</a>
</li>
#end
</ul>
#end
</li>
#end
</ul>
</nav>
<h1>
<span>#language("navigation")</span>
</h1>
<ul>
#foreach ($nav_item in $nav_items)
#if ($nav_item.isSelected())
<li class="selected">
#else
<li>
#end
<a href="$nav_item.getURL()" $nav_item.getTarget()><span>$nav_item.icon() $htmlUtil.escape($nav_item.getName())</span></a>
#if ($nav_item.hasChildren())
<ul class="child-menu">
#foreach ($nav_child in $nav_item.getChildren())
#if ($nav_child.isSelected())
<li class="selected">
#else
<li>
#end
<a href="$nav_child.getURL()" $nav_child.getTarget()>$nav_child.getName()</a>
</li>
#end
</ul>
#end
</li>
#end
</ul>
</nav>
Abhishek Saxena, geändert vor 12 Jahren.
RE: PROBLEM WITH ADDING CHILD PAGE
Regular Member Beiträge: 130 Beitrittsdatum: 17.06.09 Neueste Beiträge
can you detail your requirements for which you are trying to get child pages in theme .
Anitha Yadav, geändert vor 12 Jahren.
RE: PROBLEM WITH ADDING CHILD PAGE
New Member Beiträge: 4 Beitrittsdatum: 19.04.11 Neueste Beiträge
for main navigation menu.......
The sample structure goes like this
Careers(This page is in main navigation menu) in that
Current openings(child pages)
XYZ Employees
The sample structure goes like this
Careers(This page is in main navigation menu) in that
Current openings(child pages)
XYZ Employees
Hitoshi Ozawa, geändert vor 12 Jahren.
RE: PROBLEM WITH ADDING CHILD PAGE
Liferay Legend Beiträge: 7942 Beitrittsdatum: 24.03.10 Neueste Beiträge
You've posted to a wrong forum. This forum is about this Liferay community site.
If you have questions concerning using liferay at your site, please post to the 2. Using Liferay forum.
Also, please don't use all capital letters in Subject.
http://www.liferay.com/community/forums/-/message_boards/category/4470261
If you have questions concerning using liferay at your site, please post to the 2. Using Liferay forum.
Also, please don't use all capital letters in Subject.
http://www.liferay.com/community/forums/-/message_boards/category/4470261