Hi Everyone, If any one has customized portal page display to have "div" tags to place portlets instead of "table" tags, please share your idea's. Thanks, Uday Bhasker J.
Yes, using div tags is considered best practice (it is best to avoid hard-coded tables in your Page JSP).
You can use div tags (or HTML5 tags as well) in a variety of ways on the Portal Grid and in the Portal Styles.
For example, you could add simple div elements that contain the vgn-portal tag to show either Portal Style Types or Portlets.
<header class="topimg1">
This is now available OOTB.
Use “DHTML Page Display” as the Page Display Implementation.
Thanks & Regards
Qutubuddin SaifuddinSenior Consultant I America Services OrganizationPhone: (732) 354 4423 Mobile: (732) 397 7951
Website: www.opentext.com
This email message is confidential, may be privileged, and is intended for the exclusive use of the addressee. Any other person is strictly prohibited from disclosing orreproducing it. If the addressee cannot be reached or is unknown to you, please inform the sender by return email and delete this email message and all copies immediately.
From: eLink Entry: OpenText Portal Forum [mailto:vignetteportal@elinkkc.opentext.com]Sent: Thursday, February 07, 2013 3:55 PMTo: eLink RecipientSubject: Cutomizing portal page display
Cutomizing portal page display
Posted byuday_jorigala@nylim.com (Jorigala, Uday Bhasker) On 02-07-2013 15:54
Hi Everyone,If any one has customized portal page display to have "div" tags to place portlets instead of "table" tags, please share your idea's.Thanks,Uday Bhasker J.
[To post a comment, use the normal reply function]
Forum:
OpenText Portal Forum
Content Server:
Knowledge Center
Quoted Uday Bhasker Jorigala on 2013-02-07 22:19:
Hi Everyone, If any one has customized portal page display to have "div" tagsto place portlets instead of "table" tags, please share youridea's. Thanks,Uday Bhasker J.
Yes, using div tags is considered best practice (itis best to avoid hard-coded tables in your Page JSP).
You can use div tags (or HTML5 tags as well) in a varietyof ways on the Portal Grid and in the Portal Styles.
For example, you could add simple div elements thatcontain the vgn-portal tag to show either Portal Style Types or Portlets.
<header! class=& quot;topimg1">
<vgn-portal:includeStyle friendlyID="header"/></header> <div class="topimg3"><vgn-portal:includeStyle friendlyID="banner"/></div> <div id="content"> <!-- begin page content area --><! ;page:tas-authentic ator />! <vgn-portal:includePageContent/><!-- end page content area --> </div> <div> id="textpadportlet"><vgn-portal:renderPortlet portletFriendlyID="textareasample"> <vgn-portal:onRenderSuccess> &nb! sp; <vgn-portal:insertPortletContent/> </vgn-portal:onRenderSuccess> <vgn-portal:onRenderFailure> <p class="epi-error">Thisportlet can not be displayed</p> </vgn-portal:onRenderFailure></vgn-portal:renderPortlet> ! ! </! div> Then for each div element id, add a corresponding elementinto your CSS that will provide the structure and look&feel of thepage. You can reference this style sheet as an external CSS ref in thePortal Grid.------------------ If you are using Portal for VCM/WEM (version 8) youdon't even need div elements in the Portal Grid. Instead you place yourdiv elements in the WEM Page Layout JSP or Page Template JSP and definethe content regions on the Page Template (using the Content Workspace).The only requirement for this is that you declare the page layout tag inthe Portal Grid: <body> ! <%-- This tag is usedto include the WEM Page Layout --%><% if (HtmlUtils.sniffBrowser(request)> 0) { %><page:include-page urlContext="/vgn-ext-templating"pagePath="/in_line/pageLayout.jsp"/><% } %> <%-- This tag is used to include the WEMTools Palette --%><% if (HtmlUtils.sniffBrowser(request)> 0) { %><page:include-page urlContext="/vgn-ext-templa!ting" pagePath="/in_line/in-context-edit.js! p" /! ><% } %><script language="JavaScript"type="text/javascript" src="/shared/js/wz_tooltip.js"></script> <%-- Need to invoke dependency trackingat the end of the template --%><% if (HtmlUtils.sniffBrowser(request)> 0) { %><page:include-page urlContext="/vgn-ext-templating"pagePath="/in_line/trackDependencies.jsp"/><% } %></body>! Let me know if you need more examples... Evan
Thanks Evan, for quick reply. Actually what I was looking is to make use of portlets functionality and wrap protlets in div tags, control the portlets layout from Portal UI. I was thinking to have custom "secondary page" to achieve the functionality. Thanks, Uday Bhasker J.
Hi Uday,
Yes, that is something completely different. The easiest way to achieve this is to use custom styles that contain the portlets, then render that style in the grid (in the usual way).
I would avoid using Portal UI! The reason is that it's not expedient to make changes to the "epi" style elements. You can override the Portal UI "epi" stylization but it's not useful to do this when you can simply add a standardized external (or internal) css3 to your style or portlet jsp.
To add a portlet to a style:
Example Style that references a Portlet:
Example Div that references a style type (placed in Portal Grid JSP)
and one more thing to add (as I think you are using WEM also):
If this portlet has anything to do with WEM, I'd recommend that you add this instead as a component instance based on a new component type. This involves creating a new component type (in AppConsole) that references your portlet and if it happens to be a CP portlet, you don't actually need an instance managed in Portal. You can create an instance in the Workspace, then reference that in the Component Instance.
The advantage to this is that you can rely on your WEM Theme to control the look & feel of your "portlet" (which isn't really a portlet anymore but rather a component instance rendered on a region).
This also gives you the added flexibility of allowing business users to place this so-called "portlet" anywhere on their pages or templates!
In this case, OpenText Portal only exists as a JEE container used to render html fragments coming from AppSvcs.
Hello,
I am trying to do something similar and wanted to see if anyone can help. I have my page display setup the way i want but the portlets that render in preview get wrapped around with OOTB div's for incontextedit. These div's break the styling of my pages. I wanted to be able to put the OOTB divs inside of the portlet div's. Anyone how I can do something that like?
I am on WCM 8.0 using DPM and Portal 8.1.
Thanks,
Murtaza