Closed (fixed)
Project:
Custom Formatters
Version:
7.x-2.2
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
28 Apr 2013 at 12:28 UTC
Updated:
29 May 2013 at 07:01 UTC
Quick support question:
I just want my custom formatter to wrap some html around the field that is formatted.
How do i do that?
To be specific: what is the name of the "field variable" to use inside the custom formatter?
My formatter looks like this:
<some-wrapper-div>
[field-variable]
</div>Is that even possible?
Thanks in advance,
Frank
Comments
Comment #1
Knarf31 commentedI'm wondering if this is really this complicated or if my question is just lousy :-)
I'm trying to achieve the following:
I want to be able to format a textfield with a custom formatter.
This custom formatter only wraps a div around the fields content.
In order to do this i need a "variable" or a "token" inside my custom formatter, which represents the fields value.
Is this possible or do i have to do this in php?
Can someone help me out here?
Comment #2
Knarf31 commentedJust in case anyone is interested in this too.
I got time to talk about this with someone more experienced than me and we got the following code which is working fine for me: