2

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">
      Title
   </div>
   <div class="text">
      <div id="postdate">
         1/1/1999
      </div>
      <div id="body">
         body text
      </div>
   </div>
</div>

Is this possible?

2 Answers 2

3

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

1

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 and acknowledge you have read our privacy policy.

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