Plumtree Pluggable Navigation API  
 

CListURLTemplateMediator Class

Created on Oct 29, 2002 Mediator for ASCompoundList, takes values from ASCompoundList and returns URL Templates, comma separated String with the type of URL and its parameters. A CommunityPage URL would look like 'C,201,-201' where C stands for Community Template, 201 for the community id and -201 for page id. URL Templates are used to lessen the data being sent down to the client. The full URL is constructed by calling the buildURLFromTemplate javascript function (use the NavigationCommonHelpers.JSCRIPT_FUNC_BUILD_URL_FROM_TEMPL constant). The templateURLRedirect javascript function (use the NavigationCommonHelpers.URLTEMPLATE_REDIRECT_JSFUNCNAME) to construct the full url and redirect to it. This mediator is for menus with their own onclick event handling. Use the CListURLTemplateLinkMediator to get an HTMLAnchor elements that redirects to the url in the template. Example use: ICPListIterator mediator = new CListURLTemplateMediator(m_asOwner, cpList1); mediator.SetLabelMaxLength(50); //set the maximum label length to 50 characters while (mediator.Next()) { String[] arURLTempl = (String[]) mediator.GetEntry(); String strLabel \u0009= arURLTempl[CListURLTemplateMediator.TEMPLATEARR_INDEX_LABEL]; String strURL\u0009\u0009= arURLTempl[CListURLTemplateMediator.TEMPLATEARR_INDEX_URL]; String strImageURL\u0009= arURLTempl[CListURLTemplateMediator.TEMPLATEARR_INDEX_IMGURL]; ... }

For a list of all members of this type, see CListURLTemplateMediator Members.

System.Object
   com.plumtree.portalpages.common.mediator.CListURLTemplateMediator
      com.plumtree.portalpages.common.mediator.CListURLTemplateLinkMediator

public class CListURLTemplateMediator : ICPListIterator

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Requirements

Namespace: com.plumtree.portalpages.common.mediator

Assembly: portalpages (in portalpages.dll)

See Also

CListURLTemplateMediator Members | com.plumtree.portalpages.common.mediator Namespace