Skip to Main Content

@Boxes: Evaluations & Assessments

Reusable boxes for LibGuides

LibGuide Rating Widget

Directions for adding the LibGuide Rating Widget to a guide

1. Add the guide to the list

You'll need to decide on a "source" designation. I'd suggest using the friendly URL "slug" for the guide, formatted in a way to make it easily read. The list blow includes examples.

You can use spaces, underscores, and dashes in your source designation, but any other special characters should be avoided.

2. Add the code snippet to your guide

On the guide(s) where you plan to use  the widget, add this code snippet to the "Guide Custom JS/CSS":

<script type="text/javascript">
    // This tells the Assessment Widget the source of ratings, please don't delete!
    var clickSource = "Placeholder Source";
</script>

replacing the text Placeholder Source with the designation you came up with in part 1.

3. Map the widget box to your guide

Add a new box to your guide, but choose the "Reuse Existing Box" option. Choose "Clayton's Sandbox" for the guide and "LibGuide Rating Widget" for the box. Please leave it as a mapped box and don't create a copy! That way it'll be easier to manage.

Also, I'd advise changing the box to a Floating Box after you add it to your guide. This is a checkbox that appears if you click the little pencil to edit the box in your guide.