This is a simple field type which allows you to work with various classes in your templates. Just set them in Settings, setup your field and off you go!
- Upload this directory to
craft/plugins/columnwidth/
on your server. - Enable the plugin under Craft Admin > Settings > Plugins
{% set columnName = entry.columnWidth %}
{% set class = craft.columnWidth.getClassNameFromColumnName(columnName) %}
{{ class.className }}
{% set columnName = block.columnWidth %}
{% set class = craft.columnWidth.getClassNameFromColumnName(columnName) %}
{{ class.className }}
I definitely could not have done this without Aaron Berkowitz!
This work is licensed under the MIT license.
- [Added] Menu Icons
- [Updated]
fieldtypes
casing