Provide a link to a web page that you want to display by defining primary or secondary buttons on the Portal Banner widget. The widget displays these buttons by default.
Procedure
-
Navigate to .
-
On the Extension Points page, in the API Name column, enter *banner.
-
Select sn_ciwf_ui_cmpnt.BannerButtonsConditionScript in the API Name column.
If a message appears about the application scope, select here to be able to edit the record.
-
On the BannerButtonsConditionScript page, in the Related links section, select Create Implementation.
If a message appears about the application scope, select here to be able to edit the record.
-
On the BannerButtonsConditionScript page, in the Script field, define the primary and secondary buttons by pasting the following CSS code and then customizing it.
var BannerButtonsConditionScript = Class.create();
BannerButtonsConditionScript.prototype = {
initialize: function() {
},
showPrimaryButton: function() {
// add your condition here
return true;
},
showSecondaryButton: function() {
// add your condition here
return true;
},
type: 'BannerButtonsConditionScript'
};
-
Copy the name of the condition script from the Name field.
-
Select Update.
-
Navigate to your portal home page.
-
On the Edit page, select the Portal Banner widget.
-
Press Control+right-click.
-
Select Instance Options.
-
In the Behavior section, paste the name that you copied into the Button Condition Script field.
-
Select the condition script from the list.
-
Select Save.