Posted by mecha572 on February 23, 2013 at 2:21pm
Hi. What would be the best way to go about displaying the contents of one field within another?
For example, I created a Pull Quote text field that I want to display within my Body. Can I accomplish this with just render in the template?
Thanks in advance.
Comments
If the pull quote is actually
If the pull quote is actually from the body there is the Pull Quote module.
Thanks but it is not. It is a
Thanks but it is not. It is a separate custom field.
I just used body as an example. I am actually wondering if nesting one field within another is possible without a module. I'm wondering if it can be done purely through the templates.
_
Yes, you can do it in a template file but it's going to require php string manipulation functions. There's no way to say 'put this field in this field' provided by core or contrib that i know of.
You could also do it with js/jquery.
_
Don't be a Help Vampire - read and abide the forum guidelines.
If you find my assistance useful, please pay it forward to your fellow drupalers.