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

nevets’s picture

If the pull quote is actually from the body there is the Pull Quote module.

mecha572’s picture

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.

WorldFallz’s picture

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.