Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 16 Next »

String overrides allow a user with the site admin role to change a "string" of text. For example "Take course" can be changed to "Continue."

Warning!

A string override will change the string everywhere on the site and may have unintended consequences. Please fully test changes on your test site, including course relationship parent pages.

In order for a string to be changed, the text string must match exactly, including capitalization.

EthosCE uses CSS to transform various text in all caps. This means that the text you see onscreen may have a different capitalization than the actual text in the browser. Most text in EthosCE uses sentence case, meaning the first letter is uppercase and the others are lowercase. If there is a question as to the actual case, the "view source" function of your browser will show the actual, untransformed text. 

String overrides will not match a partial string. For example a search string of "course" will not be matched for "Take course." Or, a search string of "Take course" will not match, "To begin, click 'Take course.'" 

To override a string in EthosCE:

  1. Log in as user with the site admin role.
  2. Click the wrench to open the admin menu.
  3. Click "Administration."
  4. Click "Configuration."
  5. Click "String overrides."
  6. Enter the text to be replaced in the first empty "Original" field.
  7. Enter the replacement text in the "Replacement" field."
  8. Click "Save configuration." 

Troubleshooting string overrides

  • Ensure the string matches exactly. If there is any additional text added or text missing, the string will not be matched. Check for empty spaces before or after the search string.
  • Some strings in EthosCE are dynamically generated. For example "Please login or register to take this course" contains links and must be specially constructed. For more information on replacing dynamically generated string see the examples below or contact EthosCE support.

Basic examples

Original textReplacement
Course descriptionOverview
Faculty & CredentialsContributors
Postal codeZIP/Postal code


Dynamic string examples

Original textReplacement
Please !login or !register to take this course.Please !login to Enroll
Return to %titleReturn to course
Thank you for shopping at [store:name]. While logged in, you may continue shopping or <a href="[uc_order:url]">view your current order status</a> and order history.Thank you for shopping with us. While logged in, you may continue shopping or <a href="[uc_order:url]">view your current order status</a> and order history.
This course opens on %date.This activity opens on %date.
Enter your @s username.Enter your username.
Start @quizStart


Changing course to Activity

In this example the term "Course" is replaced with "Activity"

Original textReplacement
Bookmark courseBookmark activity
Course closedActivity closed
Course completeActivity complete
Course descriptionActivity description
Course expiresActivity expires
Course expires:Activity expires:
Course format & instructionsActivity format & instructions
Course instructionsActivity instructions
Course not openActivity not open
Course opensActivity opens
Course opens:Activity opens:
Course progressActivity progress
Course summaryActivity summary
CoursesActivities
Here are the courses you have purchased:Here are the activities you have purchased:
Please !login or !register to take this course.Please !login or !register to take this activity.
Resume courseResume activity
Return to courseReturn to activity
Return to Course HomeReturn to activity
Return to the course to view course details and material.Return to the activity to view course details and material.
Review courseActivity complete
Start courseContinue
Take courseContinue
Thank you for participating in this course.Thank you for participating in this activity.
This course closed on %date.This activity closed on %date.
This course opens on %date.This activity can be completed beginning on %date.
This course requires an access code to enroll.This activity requires an access code.
Unbookmark courseUnbookmark activity
You have already purchased this course.You have already purchased this activity.


Tips and tricks

The "replacement" text in string overrides will accept CSS and HTML.

OriginalReplacementExplaination
Payment required<a href="#footer" class="course-take-course-link">Purchase info</a>The text is transformed into a link that looks like a button.
Please !login or !register to take this course.Please <strong>!login or !register</strong> to take this course.The "login or register" links are made bold.

7.4.4+ customers can add their own CSS using the global CSS field. In that way a site administrator could create a custom CSS definition and apply a selector to a string using string replacements.


If you have any additional string overrides you think other EthosCE administrators would benefit from, please open a ticket and let us know.


  • No labels