Social Flags

The following are all the social flags that can be defined in the tenant's definition.json.

alternativeSharingUrl

Description: When enabled, it allows for alternative sharing URL tags for Facebook, Twitter, and Pinterest that can be added to the default/articleDetails.jsp.

Location: Features

Values: True/False

Example: 

 

"alternativeSharingUrl" : true

commentingSystem

Description: Defines the commenting system the tenant is using.

Location: Features

Values: String

Example: 

"commentingSystem":"disqus"

customParamDisqus

Description: Defines parameters for the tenant's Disqus blog comments extraction.

Location: Features

Values: String

Example:

 "customParamDisqus": "comments/"

disqusShortname

Description: Defines the Disqus unique identifier assigned to a site.

Location: Features 

Values: String

Example:

 "disqusShortname": "eresmama"

lateralMenuShareOptions 

Description: To add social sharing icons to the lateral menu, the lateralMenuShareOptions must first be enabled in the features section and then the social networks to be added defined.

Location: Features 

 Values: String

Example:

"lateralMenuShareOptions": true,
	"socialNetworks":[{ 
		"name": "facebook", 
		"uri": "https://www.facebook.com/tenantname" 
		},{ 
		"name": "twitter", 
		"uri": "https://twitter.com/tenantname" 
		},{ 
		"name": "instagram", 
		"uri": "https://www.instagram.com/tenant/" 
	}],

To include the original social network color to the icons, *add this mixin to custom.scss*:

.mrf-lateralMenu .mrf-shareOptionsHint .mrf-shareOption { 
 @include socialIconsColor; 
}

preloadComments

Description: If enabled, social comments are enabled. If set to false, the comments div will have a mrf-collapsedBox class.

Location: Features

Values: True/False

Example: 

 "preloadComments": true

shareCounterThreshold

Description: Defines the minimum amount of shares needed to display the social share counter.

Location: Features

Values: Numerical

Example:

"shareCounterThreshold": "10"


socialSharing

Description: Defines the order in which the social share buttons are displayed

Location: Features

Values: String (an array of social networks)

Example:

 

"socialSharing":"facebook, twitter, email, comments"

 

socialSharingModal

Description: Defines the order and the different social networks to be displayed in the tenant's social share bar.

Location: Features

Values: String (an array of social networks)

Example:

 "socialSharingModal":"facebook,whatsapp,twitter,messenger,telegram,linkedIn,pinterest,reddit,stumble,VK,OK,email,comments"

tenantFacebookLanguage 

Description: When enabled, this flag changes the language of the Facebook Like Box according to the one defined. English is the default value. .

Location: Features

Values: String. The parameter is defined by a string and must be a language supported by the Facebook API.

Example: 

"tenantFacebookLanguage": "pt_PT"


tenantFacebookPageName 

Description: Defines the tenant's name in their Facebook app.

Location: Features

Values: String. 

Example:

 "tenantFacebookPageName": "tenant.com"

twitterFormatNative

Description: Formats the shared article structure according to the tenant's site.

Location: Features

Values: String. The parameters are:

  • {0}: title
  • {1}: tenant
  • {2}:
  • {3}: 

Example:

"twitterFormatNative":"En @{1}: {0}"

twitterFormatWeb

Description: Formats the shared article structure according to the tenant's site.

Location: Features

Values: String. The parameters are:

  • {0}: title
  • {1}: tenant
  • {2}:
  • {3}:

Example:

"twitterFormatWeb":"{0}?url={1}&text=En+@{3}:+{2}"

twitterWidgetAccount

Description: Defines the tenant's Twitter handle (account ID) which is necessary for the Twitter handle.

Location: Features

Values: String

Example:

 "twitterWidgetAccount" : "Example"

twitterWidgetKey

Description: Defines the tenant's Twitter widget key that's needed to implement the Twitter widget. 

 Location: Features

Values: String

Example:

 "twitterWidgetKey" : "123451234512345123"