Skip to main content
2 of 3
added 136 characters in body
srodrig
  • 145
  • 2
  • 14

Print Link field in View template

I have a 'Link' field that is entered in plain text by user. I am trying to display the raw value of this field in my views template. I did dsm($fields); in the views template.

For the field, the raw data shows as a node id, not the url the user entered. The content attribute shows the url but it is wrapped in html. This is also the case when using ->content or ->raw in my views template.

I need to only print the plain url text the user entered in the template. How can I do this?

Here are the results for content and raw value:

enter image description here

srodrig
  • 145
  • 2
  • 14