Foren

How to change position of a portlet after signin & signout?

thumbnail
Tanaji M. Londhe, geändert vor 11 Jahren.

How to change position of a portlet after signin & signout?

Regular Member Beiträge: 194 Beitrittsdatum: 25.04.12 Neueste Beiträge
Hi,
I create one custom theme when i inspect firebug it shows me whole html code of a portal page.
Here I dont understand where is the portlet-layout and portlet this class is applied the theme code means
in which vm file it metion <div class="portlet-layout"> or <section id="portlet_welcomebirdzi_WAR_welcomebirdziportlet" class="portlet"> this code. (vm files are portal_normal.vm or portal_pop_up.vm ......................)
.........................................
<body class="yui3-skin-sam controls-visible guest-site signed-in public-page site dockbar-ready">
<div id="aui_3_4_0_1_326" class="yui3-dd-proxy" style="position: absolute; display: none; z-index: 999; top: -999px; left: -999px;"></div>
<div id="aui_3_4_0_1_292" class="yui3-dd-shim" style="top: 0px; left: 0px; position: absolute; z-index: 9999; overflow: hidden; background-color: red; display: none; height: 5px; width: 5px;">
<script src="http://code.jquery.com/jquery-1.4.2.min.js">
<script src="/birdziTheme-6.1.0.1/js/menu.js" type="text/javascript">
<div id="wrapper">
<a id="skip-to-content" href="#main-content">Skip to Content</a>
<div id="HeaderWrap">
<div id="HeaderWrapTwo">
<div id="content" class="wrapper">
<div id="p_p_id_103_" class="portlet-boundary portlet-boundary_103_ portlet-static portlet-static-end ">
<div id="main-content" class="columns-1" role="main">
<div class="portlet-layout">
<div id="column-1" class="portlet-column portlet-column-only yui3-dd-drop">
<div id="layout-column_column-1" class="portlet-dropzone portlet-column-content portlet-column-content-only">
<div id="p_p_id_welcomebirdzi_WAR_welcomebirdziportlet_" class="portlet-boundary portlet-boundary_welcomebirdzi_WAR_welcomebirdziportlet_ welcome-birdzi-portlet portlet-draggable yui3-dd-drop">
<span id="p_welcomebirdzi_WAR_welcomebirdziportlet"></span>
<div class="portlet-body">
<section id="portlet_welcomebirdzi_WAR_welcomebirdziportlet" class="portlet">
.............................

Here I want change the of a portlet position, when user is sign in & signout in my custom Theme.

Thanks & regards,
Tanaji.
thumbnail
David H Nebinger, geändert vor 11 Jahren.

RE: How to change position of a portlet after signin & signout?

Liferay Legend Beiträge: 14919 Beitrittsdatum: 02.09.06 Neueste Beiträge
These tags are inserted by the layout, not the theme.
mahesh k, geändert vor 10 Jahren.

RE: How to change position of a portlet after signin & signout?

New Member Beiträge: 2 Beitrittsdatum: 06.02.12 Neueste Beiträge
The 'section' element wraps your portlet div in portal_normal.vm based on a condition.

#if ($selectable)
$theme.include($content_include)
#else
$portletDisplay.recycle()
$portletDisplay.setTitle($the_title)
$theme.wrapPortlet("portlet.vm", $content_include)
#end

Refer the portal.vm file having the <section> element which wraps your portlet div.