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 3 Next »

This page is for Wiki discussion of CChannelManager.

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". As explained to me by Susan, 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.

  • No labels