To give the user some more control over the output of the list it would be great if the title output as defined in the view's field settings would be used instead of the raw node title. This will make it possible to for example show the title as a link, show a rewrite containing additional fields, etc.

Additionally it might even be better to show the entire row instead of just the title. This could be done by writing a custom views plugin.

CommentFileSizeAuthor
#1 show_rendered_title-1393644-2.patch860 bytesklaasvw

Comments

klaasvw’s picture

StatusFileSize
new860 bytes

Attached is a patch against head that will use the title views field for display. If there is no suitable title views field it will fallback to the raw node title.

mrconnerton’s picture

Status: Active » Needs review
johntarling’s picture

Thanks @klaasvw for the rendered field code, I have reused some of the code in a patch I provided to #1477974: Allow option to assign key and value in view which lets you use any field and its rendered output.

mrconnerton’s picture

Hey, if either of you guys are at Drupal con, I was hoping to finally spend some time there to sprint on this and get all these patches tested and commited, and maybe get a few more in.

jdanthinne’s picture

Patch #1 works fine. Excellent job! Excellent module!

BD3’s picture

I can confirm that the code in #1 works for me as well. However when patching the module through terminal I would receive this error:

patching file webform_views_select.module
patch unexpectedly ends in middle of line
Hunk #1 FAILED at 33.

I just manually patched the file and it works fine.

Stevel’s picture

Issue summary: View changes
Status: Needs review » Closed (duplicate)

This is now a special-case of #1477974: Allow option to assign key and value in view, so closing as a duplicate.

Stevel’s picture