Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Each module has configurations that also need to be set, including the property to enable the feature in the interface.  Add the corresponding code for each module directly below the code in step 1.

sendSMS

This module only has requires one property be set, to enable the module.

app.constant('smsOptions', {
  enabled: true
});

reportProblem

...

You can optionally include the following properties to change the label and the position of the feature within the list.

app.constant('smsOptions', {
  enabled: true,
label: 'Text', // the label that appears under the icon
index: 9 // position within the send-to list, first position = 0
});

Finally, you can change the list of carriers, by setting a separate smsCarriers configuration.

app.constant('smsCarriers', {
'ATT': 'txt.att.net',
'Cricket': 'mms.mycricket.com',
'Nextel': 'messaging.nextel.com',
'Project Fi': 'msg.fi.google.com',
'Qwest': 'qwestmp.com',
'Sprint': 'messaging.sprintpcs.com',
'T-Mobile': 'tmomail.net',
'Verizon': 'vtext.com',
'Virgin': 'vmobl.com'
});

reportProblem

This module requires you to se the email address that will receive the problem report.  Also enable the module.

...

You can optionally set the message and button text, as well as the subject that appears in the email.The values in the example below are the following properties.  Example below includes defaults.

app.constant('reportProblem', {
to: 'dwalker@calstate.edu',
enabled: true,
messageText: 'See something that doesn\'t look right?', // text that appears before the link
buttonText: 'Report a Problem', // the portion of the text that is the link
subject: 'Problem report', // email subject line
});

multipleAnalytics

Set the siteSource to either ga for Google Analytics or matomo for Matomo Analytics.

...