Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I'm controlling my node's display with panels. I have a field called "Sub Title" that I would like to wrap in an h2 tag.
This module (http://drupal.org/project/semantic_fields) does exactly that and more! However, I can only get the Field Formater to display using the field API UI (screenshot).
Shouldn't this field be able to be set when adding the field through the panels interface? Here is the first screen when adding a field (step 1) the second is just blank (step 2). It looks like something is going wrong, since step 2 is completely blank.
Comments
Comment #1
merlinofchaos CreditAttribution: merlinofchaos commentedMy guess is that semantic fields uses a form alter and that isn't going to be able to catch the CTools forms without modification.
This isn't a bug, this is two modules interacting without having any knowledge of each other. Unfortunately you can't just expect that these things will work, particularly when a module is using magic for stuff.
I'll mark this as a feature request against Semantic Fields, but I wouldn't expect too much.
Comment #2
bryancasler CreditAttribution: bryancasler commentedThanks Merlin,
Any suggestion about how to accomplish the desired output. I thought about using a custom field and then just wrapping the field token in the tags I want, but I wasn't sure if that was considered a "best practice".
Comment #3
merlinofchaos CreditAttribution: merlinofchaos commentedAt the moment you'll probably have to theme the field in the standard manner. :(
Comment #4
bryancasler CreditAttribution: bryancasler commentedI just found the Drupal Fences module. It's not perfect, but it's good enough for the interim. Thanks again for your response Merlin.
Comment #5
MiSc CreditAttribution: MiSc commentedOld thread, but I think that Semantic Panels could really make the trick here.