Show Interest link cannot be disabled

Problem

We do not want to have "Show Interest" link visible in the course catalog search. We've tried to remove this column by modifying the Course Catalog view in Courses list. However, it is still visible. How can this be done?

Solution

Course Catalog view is not a usual table view but it uses xslt style sheet to render the course catalog. So as designed it's not possible to modify the view as you would usually do.

It requires customization of the style sheet to display different set of information or creating a new xslt template. So you would need to modify the following server files to achieve the goal:

C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\TEMPLATE\LAYOUTS\XSL\rem4_CourseCatalog.xsl

C:\Program Files\Common Files\microsoft shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\XSL\rem4_CourseCatalog.xsl

and delete the following part from the file, then save it:

<xsl:if test="$Userid != '-1'">

<div>

<xsl:call-template name="ShowInterestLink" >

<xsl:with-param name="thisNode" select="$thisNode"/>

</xsl:call-template>

</div>

</xsl:if>

Perform IISRESET to force the change.

Please note changes to this file will be overwritten when you update REM version.

 

Also following the above approach you can hide "Read more" and "Go To Course" links, the block of text to remove will be the following:

<xsl:call-template name="CourseDetailsUrl">
<xsl:with-param name="thisNode" select="$thisNode"/>
</xsl:call-template>

Was this article helpful?
1 out of 1 found this helpful
Have more questions? Submit a request

Comments

Please sign in to leave a comment.