Show TOC

Creating a Channel TemplateLocate this document in the navigation structure

Use

You create a channel template using the XML Content and Actions tool.

When creating a channel, you must specify values for the following attributes:

Attribute

Description

com.sap.portal.feeds.config.channel.type

The value of this attribute is used to identify the channel when registering the IChannelEntryProvider implementation.

com.sap.portal.pcd.unit.IS_TEMPLATE

Set the value of this attribute to true to make the custom channel type available for selection when the content administrator adds channels to an enterprise feed.

In addition, you define the channel attributes needed to handle the specific business logic.

The following example shows how to create a channel template named My Channel. The channel type is my_channel_type, and it has the following channel-specific attributes: myChannelAttribute_1 and myChannelAttribute_2.

<Context name="${namespace}.my_channel" create_as="0" objectClass="com.sap.portal.feeds.config.channel" title="My Channel" originalLocale="${locale}" collection="${collection}" domain="${domain}">
<Attributes>
	<Attribute name="com.sap.portal.feeds.config.channel.type" type="string">
		<AttributeValue value="my_channel_type" />
	</Attribute>
	<Attribute name="com.sap.portal.pcd.unit.IS_TEMPLATE" type="boolean">
		<AttributeValue value="true" />
	</Attribute>

	<Attribute name="myChannelAttribute_1" type="string" value="" />
	<Attribute name="myChannelAttribute_2" type="string" value="" />
/Attributes>
</Context>
More Information

For more information about the XML Content and Actions tool, see How to Automate Content Creation via XML (XML Content and Actions), located on SAP Developer Network at Start of the navigation path http://sdn.sap.com/irj/sdn/howtoguides End of the navigation path.