Technical Note: Managing Sun Java System Portal Server 7.1 Update 1 Blog Portlet

ProcedureFor an Upgraded Install

Add the Blog community service to the existing community templates.

  1. Select a template in which to add the Blog community service and add the following Blog channel definition to the community template member role display profile. Override the default preference values as needed.

    <Container name="%COMMUNITY_CONTAINER%" ...>
    	...
    	<Channel name="Blog" provider="__Portlet__blogportlet.BlogPortlet">
    		<Properties>
    			<String name="__Portlet__configMode" value="|wizard-user-only"/>
    
    			<String name="__Portlet__memberPermission" value="|AUTHOR"/>
    			<String name="__Portlet__searchUrl" value="|%COMMUNITY_SEARCH_URL%"/>
    			<String name="__Portlet__searchDatabase" value="|
    				%COMMUNITY_CONTENTS_SEARCH_DB%.blog"/>
    		</Properties>
    	</Channel>
    	...
    </Container>
    ...
  2. Add the Blog channel to the community container's available and selected list.

    ...
    <Container name="%COMMUNITY_CONTAINER%" ...>
    	...
    	<Available>
    		<Reference value="%COMMUNITY_CONTAINER%/CommunityInfo"/>
    		<Reference value="%COMMUNITY_CONTAINER%/Search"/>
    		...
    		<Reference value="%COMMUNITY_CONTAINER%/Blog"/>
    		...
    	</Available>
    	<Selected>
    		<Reference value="%COMMUNITY_CONTAINER%/CommunityInfo"/>
    		<Reference value="%COMMUNITY_CONTAINER%/Search"/>
    		...
    		<Reference value="%COMMUNITY_CONTAINER%/Blog"/>
    		...
    	</Selected>
    	...
    </Container>
    ...
  3. Add the Blog community service's search database to the search service's set of available search databases.


    Note –

    The value specified here must match the value specified in the searchDatabase preference in the channel definition.


    ...
    <Container name="%COMMUNITY_CONTAINER%" ...>
    	...
    	<Channel name="Search" provider="SearchProvider">
    		<Properties>
    			...
    			<Collection name="availableDatabases">
    				<String name="%COMMUNITY_CONTENTS_SEARCH_DB%.blog" value="Blog"/>
    			</Collection>
    			...
    	</Channel>
    	...
    </Container>
    ...
  4. Add a channel definition to the owner role DP.

    You can override the default portlet preference values in the community template role display profile Blog portlet channel definitions.

    ...
    <Container name="%COMMUNITY_CONTAINER%" ...>
    	...
    	<Channel name="Blog" provider="__Portlet__blogportlet.BlogPortlet">
    		<Properties>
    			<String name="__Portlet__memberPermission" value="|ADMIN"/>
    		</Properties>
    	</Channel>
    	...
    </Container>
    ...

    With these changes, newly created communities based on the modified template will contain the service. You must log out and log in to force the community templates to be reloaded.