OK, interesting feature request for you. How about allowing themes to define custom field formats? Given that this module is more-or-less a UI on field.tpl.php, what if a theme (or any module for that matter) wanted to come along and define a field format using a tpl.php, but which could still be configured right alongside other field formats using the semantic fields UI?

This would enable a themer to still define a bunch of field formats in the manner they are used to (field.tpl.php-esque files). Heck, it might even be because it's not possible to express the markup using the config UI available in semantic fields module.

Comments

jamsilver’s picture

Assigned: jamsilver » Unassigned
Status: Needs work » Needs review
StatusFileSize
new44.06 KB

I've attached a patch which allows themers to define totally custom default presets using the following syntax in their theme's .info file:

semantic_field_format[My Preset Name] = pathinmytheme/tomy/templates/field-format-mypreset.tpl.php

Just an idea. What do people think?

misc’s picture

Version: 7.x-1.1-beta1 » 7.x-1.x-dev
Issue summary: View changes
misc’s picture

Status: Needs review » Needs work

The last submitted patch, 1: semantic_fields-1950708-01-themes.patch, failed testing.