I have created a custom module which includes a field for a custom classification which is selected just like tags are. I'm using client-side list filtering via Isotope (http://isotope.metafizzy.co/). In order to accomplish this, I need to render the classification names assigned to each module item as a space-separated text. I've been editing the list template for this custom module, but I can't seem to get it to render a simple space-separated list.
To clarify, let's say I've created a custom module of Widget
. I've added a custom classification of WidgetCategory
, which is a field for each Widget item. Let's say I have a widget named "Sprocket" that's has categories "Round" and "Steel." I need the list to render something like this:
"isotopeItem Round Steel"
I tried using the FlatTaxonField control, but it creates a UL for the classifications. I tried specifying my own layout template, but it gives me an "object reference not set to an instance of an object" error when rendering the control.
I'd like to be able to do this via the list template rather than developing a custom widget if possible.