December 2011
Intermediate to advanced
170 pages
3h 50m
English
Formerly called Semantic CCK (drupal.org/project/semantic_fields), Semantic Fields (in Development Release as of this writing) helps you do exactly what it sounds like: turn your Drupal fields into clean, semantic code. The module lets you set up certain default field formats through a configuration interface, then apply those formats to a given field in your Drupal content type through the Manage Display interface. This means that you can, conceivably, turn code like this:
<div class="field field-type-filefield field-field-recipe-photo">
<div class="field-items">
<div class="field-item odd">
<img width="200" height="200" title="" alt="" src="my-image.jpg" />
</div>
</div>
</div>To this:
<img width="200" height="200" title="" alt="" src="my-image.jpg" />
without having to mess with template files or theme functions. As a fan of semantic markup, I can’t begin to tell you how gleeful this makes me.
Read now
Unlock full access