24 March, 2015 · 1 minute to read
Support for custom assignment fields in SharePoint Learning Kit
In version 1.8 I’ve added support for adding custom fields to an assignment, If you’ve ever felt the need to add more details for an assignment, you can now do it.
Here’s an example of an assignment with four extra properties:
This assignment has four custom properties:
Here’s the student view of the same assignment:
The implementation is based on storing the custom properties in a list on the site the assignment is assigned to. You configure the name of the list in the SLK settings, then SLK will look for a list of that name in the site. If it finds it, then it adds the columns in the default view as custom properties.
The name of the property is the name of the column and the columns types supported are:
These will be rendered as above, with the url type rendered as a url to the student. All other column types will be ignored, as will the Title property.
If there isn’t a list in the site with the configured title, then assignments for that site won’t have any custom properties. This allows you to have different custom properties for each site.
If the column is marked as required in the list, then the custom property will be required.
SLK will handle access to the list so you don’t need to give your users permissions to access it, in fact it’s probably preferable for them not to have access to it directly.
The ordering of the custom properties is controlled by the order of the columns in the view. So if I change the view to:
then the student view will be
and the instructor view will change similarly.
To set up and enable custom properties:
Download and install the latest version of SLK 1.8.
Set the name of the list which will hold the properties in SlkSettings.xml and update it in Central Administration. This is set in the CustomPropertyList attribute on the root Settings element.
Then create the lists in each of the sites where you want the assignments to have custom properties. Add a column to the list and default view for each custom property you want, and order the view to get the desired display order. Set required on any columns that you want to be required.
And that’s it, from now on the custom properties will be added to every assignment in those sites with appropriate lists.
Managing Director / Founder
Richard started SalamanderSoft in 2007 after a successful career as a software developer. Wanting to start his own company and with experience in integrating school systems he set out to build the best integration system for schools and to exceed customer expectations. He starting out on his own, doing all the coding, support and sales until finally the growing number of customers meant he needed to start growing the team. He is still heavily involved in coding the core Integration Suite product in addition to running the company and being the first point of contact for prospective customers.