Remove Signup link from API Developer Portal homepage

book

Article ID: 9897

calendar_today

Updated On:

Products

CA API Developer Portal CA API Gateway

Issue/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.



Environment

Release: L7APIP99000-3.5-API Developer Portal-Perpetual
Component:

Resolution

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>