Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Current »

Custom channel type

The portal does not display the value "Custom" on the Review page of the Channel Manager in the row for "Channel Type". The reason for this is that Custom channels have a type of -1, and so, conceptually, they have no registered type, and thus display a blank channel type value.

Here is the modification Susan made to correct this problem webpages/stylesheets/org/jasig/portal/channels/CChannelManager/html.xsl, lines 1860-1866:

Explicitly displaying the Custom channel type
<xsl:choose>
    <xsl:when
test="/manageChannels/reviewChannel/params/step/channel/@typeID = -1 or
not(/manageChannels/reviewChannel/params/step/channel/@typeID)">
     Custom</xsl:when>
     <xsl:otherwise>
      <xsl:value-of
select="//selectChannelType/params/step/channelTypes/channelType[@ID=/manageChannels/reviewChannel/params/step/channel/@typeID]/name"/>
     </xsl:otherwise>
</xsl:choose>

Of course, the other CChannelManger .xsl files would need to be changed also to account for all locales.

Custom is just a channel type?

Can Custom be "just" another channel type, one that allows the IChannel class to be specified at channel publication time and which solicits arbitrary channel parameters? Such that all channels would have a channel type, and the workflow for custom would be configured in a custom.cpd in the same way that the workflow for other channel types is configured?

  • No labels