Remove Signup link from API Developer Portal homepage

Document ID : KB000009897
Last Modified Date : 14/02/2018
Show Technical Document Details
Introduction:

Some people may want to remove the signup link from their API Developer Portal; as it's either not needed or they don't want more registrations. If you wish to remove the signup link on the Portal, you will have to do so by editing the display.xsl file in the AuthenticatedUser module.

Instructions:

1. Login to the CMS ( http://<portal-hostname>/admin ) 

 

2. Navigate to: 

Workspace --> Content Items -->

/SYSTEM/conf/sitebuilder/packages/layer7/modules/AuthenticatedUser/xsl/display.xsl 

 

3. Click on the yellow icon for "Edit Text" 

 

4. Find the section that has this: 

<xsl:template match="LRSDeveloper[contains(@displayHint,'welcome-area')]"> template. 

 

5. Under that section, the following section of display.xsl needs to be commented out (note: the string may be slightly different depending on your API Portal version): 

 

| <a href="{$path_to_top}/register" class="signup lightbox" ><xsl:value-of select="$phrasePacks[@key = 'auth-signup']" /></a> 

 

In other words, change it to this: 

 

<!--| <a href="{$path_to_top}/register" class="signup lightbox" ><xsl:value-of select="$phrasePacks[@key = 'auth-signup']" /></a> --> 

 

6. Click Save 

 

7. You will need to hit the green arrow next to the display.xsl to publish the changes

 

8. You may need to clear your browser cache for the changes to be seen

 

The signup link will now be removed from your API Developer Portal. 

 

Additional Information:

To get the signup link back, you simply need to follow the same steps but take away the comment symbols back to the original string:

 

| <a href="{$path_to_top}/register" class="signup lightbox" ><xsl:value-of select="$phrasePacks[@key = 'auth-signup']" /></a>