Plumtree PEIs  
 

IMyPortalPageActions.OnBeforeAddMyPortalPage Method 

This function will perform some validation based on the page name and page type when a user tries to add a new page to their available listing of pages.

NOTE: The int item of the MyPortalPageArguments needs to be a valid PageTypeConstant or there will be errors when processed.

NOTE: The String item of the MyPortalPageArguments needs to be non-null and with a length greater than 0 but less than or equal to 20. Otherwise the original _strPageName will superscede this value.

MyPortalPageArguments OnBeforeAddMyPortalPage(
   AActivitySpace _asCurrentSpace,
   IPTSession _ptUserSession,
   string _strPageName,
   int _nPageTypeID
);

Parameters

_asCurrentSpace
- Provides access to the current MVC classes as well as the Application and the HTTP Session
_ptUserSession
- Plumtree session object for the current user
_strPageName
- Name that the user is trying to assign to this new MyPortal Page.
_nPageTypeID
- Page Type that the user wants to use for the new MyPortal page.

Return Value

MyPortalPageArguments - This object will contain a String pertaining to the modified name being returned and a int pertaining to the modified page layout.

See Also

IMyPortalPageActions Interface | com.plumtree.portalpages.pei Namespace