Skip to main content
Commonmark migration
Source Link

I have a content type which has a multivalue image field. I need to create a template that displays a list of nodes of that type but displays only one value of that multi field, not all of them together.

I know we can do if we use views under 'multiple field settings' which is explained here views 3: select only one value from a multivalue field but I am not using views, Can we do using only template nodes?

  • node title1

  • first image

  • node title2

  • second image

    etc

etc

Please help.

I have a content type which has a multivalue image field. I need to create a template that displays a list of nodes of that type but displays only one value of that multi field, not all of them together.

I know we can do if we use views under 'multiple field settings' which is explained here views 3: select only one value from a multivalue field but I am not using views, Can we do using only template nodes?

  • node title1

  • first image

  • node title2

  • second image

etc

Please help.

I have a content type which has a multivalue image field. I need to create a template that displays a list of nodes of that type but displays only one value of that multi field, not all of them together.

I know we can do if we use views under 'multiple field settings' which is explained here views 3: select only one value from a multivalue field but I am not using views, Can we do using only template nodes?

  • node title1

  • first image

  • node title2

  • second image

    etc

Please help.

replaced http://drupal.stackexchange.com/ with https://drupal.stackexchange.com/
Source Link

I have a content type which has a multivalue image field. I need to create a template that displays a list of nodes of that type but displays only one value of that multi field, not all of them together.

I know we can do if we use views under 'multiple field settings' which is explained here views 3: select only one value from a multivalue fieldviews 3: select only one value from a multivalue field but I am not using views, Can we do using only template nodes?

  • node title1

  • first image

  • node title2

  • second image

etc

Please help.

I have a content type which has a multivalue image field. I need to create a template that displays a list of nodes of that type but displays only one value of that multi field, not all of them together.

I know we can do if we use views under 'multiple field settings' which is explained here views 3: select only one value from a multivalue field but I am not using views, Can we do using only template nodes?

  • node title1

  • first image

  • node title2

  • second image

etc

Please help.

I have a content type which has a multivalue image field. I need to create a template that displays a list of nodes of that type but displays only one value of that multi field, not all of them together.

I know we can do if we use views under 'multiple field settings' which is explained here views 3: select only one value from a multivalue field but I am not using views, Can we do using only template nodes?

  • node title1

  • first image

  • node title2

  • second image

etc

Please help.

Tweeted twitter.com/StackDrupal/status/677517662600232960
Source Link
Ajit
  • 41
  • 3

Get only one value from a multivalue field in template node

I have a content type which has a multivalue image field. I need to create a template that displays a list of nodes of that type but displays only one value of that multi field, not all of them together.

I know we can do if we use views under 'multiple field settings' which is explained here views 3: select only one value from a multivalue field but I am not using views, Can we do using only template nodes?

  • node title1

  • first image

  • node title2

  • second image

etc

Please help.