I'm trying to create a view that displays certain content fields inside a div that are contained by other content fields.

For example. I am displaying an image, a title, a body, and a posted date.

I'd like to do something like this

<div class="a">
   <img src="image.jpg">
   <div class="title">
   <div class="text">
      <div id="postdate">
      <div id="body">
         body text

Is this possible?


Just exclude from display all your fields.

Exclude from display

Then, at the end, create a Global text area, where you can use tokens from your excluded fields.

Global text area


exclude all the fields from display except the last field and rewrite the output of that field to apply the structure you need using tokens of the previous field.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.