Showing posts with label Portal. Show all posts
Showing posts with label Portal. Show all posts

Thursday, August 2, 2012

Related content link in Dropdown

As shown in Image to create related content link in Dropdown we need to follow below steps.

image001

Assumption: Component is created and Related content setup is done.

Below steps need to be done to use Related content in drop down.

Step1: Adding HTML Area to page.

Place a HTML area in the page to the created component.

1

Here “N_RELATED_ACTNS” is a custom Long char field.

In General Tab provide “RELATEDACTIONS” as page field name as shown in the image

2

Step 2: Hiding the Related Action Page field and making it modified by JavaScript.

Here People ID is the Related action Field defied in Related action setup page.

image

Make this field is hidden and set the page field property as below Image.

Note: Modified by JavaScript should be enabled.

image

Step 3: Code to set Related action to HTML area.

/*****************Start - Related Actions*************************/
For &i = 1 To &rs_var.ActiveRowCount
&sActionShortLabel = &rs_var(&i).N_HR_EE_DB_WRK.N_RELATED_ACTNS.GetShortLabel("RELATED_ACTION");
&sPopUpMenuJavaScript = GetHTMLText(HTML.N_GET_POPUPMENU);
&rs_var(&i).N_HR_EE_DB_WRK.N_RELATED_ACTNS.Value = &sPopUpMenuJavaScript | GetHTMLText(HTML.N_REL_ACTIONS, String(&i - 1), "N_PEOPLE_ID_DR", "%Image(PT_BTN_ARROW)", &rs_var(&i).N_MSSACTION_EMP.N_PEOPLE_ID.Value, &rs_var(&i).N_MSSACTION_EMP.N_PEOPLE_ID.Value);

End-For;
/*****************End - Related Actions*************************/

Note: “ String(&i - 1)” is required if this is used in grid/scroll else this can be eliminated.

Custom HTML object Definitions used in above code:

1. N_GET_POPUPMENU  - (Object Type is HTML)

<script language="JavaScript">
function ShowPopUpMenu(sFieldName,nRow, sActionFieldName)
{
CreateContextMenu(sFieldName,nRow, 3,"", 0, 0,"","%FormName",sActionFieldName);
return ;
}
</script>
 
2. N_GET_POPUPMENU - (Object Type is HTML)

<a id="relatedActionsRow$%BIND(:1)"  class="PSHYPERLINKNOUL" href="javascript:ShowPopUpMenu('%BIND(:2)','%BIND(:1)','relatedActionsRow$%BIND(:1)');" title="%BIND(:5)" ac="1"  class="PTSESRSLTRLTDINFO">

<img border="0" src="%BIND(:3)" style="width: 12px; height: 8px; cursor: pointer; vertical-align:middle: text-bottom;" ac="1" noc="1">%BIND(:4)</a>





Friday, August 12, 2011

Link To Portal Folder

The below code can be used for a link to navigate to your portal folder.

Declare Function NavPageURL PeopleCode EOPP_SCRTN_WRK.FUNCLIB FieldFormula;

&LINKURL = NavPageURL(%Portal, %Node, "your-folder-object-name", "PSC", "", "", "False", "", "", "");
%Response.RedirectURL(&LINKURL);

Tuesday, November 9, 2010

Change Homepage Logo

Open the following defination and changed them.
1. NEW_PS_LOGO (Image Type) - To change the logo.
2. PORTAL_UNI_HEADER_NS4X (Html Type) - Change logo name on mouse over.
3. PORTAL_UNI_HEARDER_NNS (Html Type)
4. PT_BRANDING (Application Package Type) - Deals to manipulate homepage and portal look.

Note: Dont change image name in PT_BRANDING application package. Have a backup of original Image type as NEW_PS_LOGO1 and update NEW_PS_LOGO with your image.

Thursday, October 14, 2010

Overview Of Portal Registry And Content References


Portal Registry
Each portal is defined by a portal registry.
A portal registry has a tree-like structure in which content references are organized, classified, and registered.
A portal registry contains folders and content references.
In the portal registry, folders organize content references into a multilevel hierarchy
Every portal registry contains a root folder and a Portal Objects folder.
There are several ways to access and maintain the portal registry:
  • Use the registration wizard to register content references, assign security, and update.
  • Use the Menu Import feature to upgrade custom menu group definitions.
  • Use portal administration pages to add, change, or delete folders and content references from a portal registry.
  • Use the portal registry API for programmatic access to the registry.
  • Use the security synchronization process to update the portal registry security based on the menu and script security.
Content references
Content references are definitions that have been entered or registered in the portal registry.
Content references fall into four categories:
  1. homepage tabs
  2. target content
  3. templates
  4. pagelets
Access to content references is controlled by permission lists assigned when the content reference is created.