Join Community Page Editor Tags for Adaptive Layout
Tag communityjs


Generates the javascript functions required for community preview and invitation. These tags are only available on the Join Community Selection layout, which applies to the DHTML flyout for adding portlets to a page.

Example:
<pt:joincommunitypageeditor.communityjs pt:join='joinCommunity' pt:leave='leaveCommunity' pt:preview='previewCommunity' pt:invitation='invite'/>


Tag Information
Tag Namecommunityjs

Attributes
NameTypeRequiredDefault ValueDescription
joinstringfalseN/AUsed to insert a javascript function allow the user to join a community. If this attribute is not present, the javascript will not be displayed. The value of this attribute will be the name of the javascript function. The function has one argument: community ID. In order to change the state of a community from joined to unsubscribed and vice-versa, the community div needs to have the current type in the class attribute (i.e. ali-edit-portlets-narrow) and the other type in the swapclass attribute (i.e. ali-edit-portlets-chosen). The join and leave community links both need to be displayed on the page with the style attribute being 'display:none;' or 'display:visible;', depending on which link is supposed to be shown. The preview community link needs to have an isalreadyjoined attribute with a value of 'true' or 'false' depending on whether or not the user has joined community. The community div and join and leave community links and preview community link all need to have ids of 'communityxx', 'join-communityxx', 'leave-communityxx', and 'preview-communityxx' where 'xx' is the id of the community.
leavestringfalseN/AUsed to insert a javascript function allow the user to leave a community. If this attribute is not present, the javascript will not be displayed. The value of this attribute will be the name of the javascript function. The function has one argument: community ID. In order to change the state of a community from joined to unsubscribed and vice-versa, the community div needs to have the current type in the class attribute (i.e. ali-edit-portlets-narrow) and the other type in the swapclass attribute (i.e. ali-edit-portlets-chosen). The join and leave community links both need to be displayed on the page with the style attribute being 'display:none;' or 'display:visible;', depending on which link is supposed to be shown. The preview community link needs to have an isalreadyjoined attribute with a value of 'true' or 'false' depending on whether or not the user has joined community. The community div and join and leave community links and preview community link all need to have ids of 'communityxx', 'join-communityxx', 'leave-communityxx', and 'preview-communityxx' where 'xx' is the id of the community.
previewstringfalseN/AUsed to insert a javascript function to preview a community. If this attribute is not present, the javascript will not be displayed. The value of this attribute will be the name of the javascript function. The function has two arguments: community ID, and whether or not the community is already joined (i.e. this.attributes.isalreadyjoined.nodeValue).
invitationstringfalseN/AUsed to insert a javascript function to display a popup with an invitation link to the community. If this attribute is not present, the javascript will not be displayed. The value of this attribute will be the name of the javascript function. The function has one argument: community invitation ID.
flyoutIDstringtruenullSpecifies the ID of the div that will have the flyout effect.


Copyright 2005 Plumtree Software, Inc.