Drupal 7 views fields

Dear experts,

I was wondering, is there a way to nest fields inside a view?
For example, I have the following fields inside views:

Fields:
Field 1
Field 2
Field 3
Field 4

So my question is, is it possible to nest Field 2 inside Field 1? like:

Field 1
      Field 2
field 3
Field 4

I would like Field 2 to be inside the div that corresponds to Field 1.

Thanks in advance,

Winter
glepizaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Aaron FeledyDrupal Developer and ConsultantCommented:
In your view configuration, go to each field and exclude it from display. Then, add a custom text field to your view. You can then use tokens to add the content from each of your fields and add divs etc to arrange things however you like.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
glepizaAuthor Commented:
you are a genius!!! Thanks!!!!!!! just what I need it.
0
glepizaAuthor Commented:
One more thing, I just saw it after doing everything, but if you want I can open a new question. :)
On the view fields I have the following field: Privatemsg: Send Privatemsg link. For some reason I can´t exclude it from display so when I use the token [privatemsg_link] I get two links to send a private message. Do you know if there is way to work around this?

As I said before, if you would like me to open a new question that is fine, but if you can answer me here I would greatly appreciate it.

thanks

Winter
0
Aaron FeledyDrupal Developer and ConsultantCommented:
The missing option seems to be a shortfall with the privatemsg module. Check here for a patch. You could also hide the field with CSS, but I would advise against that since it still shows up when viewed by search engines and various other platforms.
0
glepizaAuthor Commented:
Excellent! the patch worked like a charm! Thank you very much!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Content Management

From novice to tech pro — start learning today.