Skip to main content
formatting
Source Link
Shawn Conn
  • 27k
  • 15
  • 50
  • 73

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);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->content or ->raw->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

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

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

added 136 characters in body
Source Link
srodrig
  • 145
  • 2
  • 14

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

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?

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

Source Link
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?