11/05/2014

Defining Custom Template Variables in a Building Block

The NSSE template variable b2 can be downloaded here.  My presentation from Bb DevCon 2015 can be found in that folder as well.

I would like to thank Simon Ponder of Purdue's Informatics group for sharing his code on which I based the below upon.  Hopefully, this post will give others looking to create their own custom template variables in Blackboard Learn enough information to get started.

To start off, we have to define our plugin as a java extension in the bb-manifest.xml file like so:

<?xml version="1.0" encoding="utf-8"?>
<plugin>

    <name value="bsTemplateVar" />
    <handle value="bs-template-var" />
    <description value="Brett's Custom Template Variable" />
    <default-locale value="en_US" />
 <webapp-type value="javaext"/>
...
</plugin>