Skip to content

hybridinteractive/Craft-Column-Widths

Repository files navigation

Column Widths Plugin for Craft CMS

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!

Installation

  1. Upload this directory to craft/plugins/columnwidth/ on your server.
  2. Enable the plugin under Craft Admin > Settings > Plugins

Usage

Standalone Field

{% set columnName = entry.columnWidth %}
{% set class = craft.columnWidth.getClassNameFromColumnName(columnName) %}
​
{{ class.className }} 

Inside a Matrix Field

{% set columnName = block.columnWidth %}
{% set class = craft.columnWidth.getClassNameFromColumnName(columnName) %}
​
{{ class.className }} 

Special Thanks

I definitely could not have done this without Aaron Berkowitz!

License

This work is licensed under the MIT license.

Changelog

1.0.1 -- 2016.01.13

  • [Added] Menu Icons

1.0.2 -- 2016.03.17

  • [Updated] fieldtypes casing

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published