Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
After upgrading to 2.9 the mentioned behaviour doesn't work anymore for an imagefield.
Workaround is to "Rewrite the output of this field" and to add the link manually.
To reproduce:
- Make new view (viewtype node)
- Choose a field (Node title)
- Select "Output this field as a link"
- Enter "" as link path
- Preview! No link shows up
- Enter another path (eg "test")
- Preview! Link to "test" shows up
Is this by design now?
cheers, Ronald
Comment | File | Size | Author |
---|---|---|---|
#6 | views-frontpagelink.patch | 1.01 KB | dawehner |
#5 | views_2.9_field-as-link_front.txt | 1.16 KB | rokr |
Comments
Comment #1
dawehnerThere was a feature request, that if you enter to linkpath, it should be displayed as text.
IF you want to link to the frontpage you can use
Comment #2
rokr CreditAttribution: rokr commentedIn the description above something got lost.
'Enter "" as link path' means 'Enter "
<front>
" as link path'@dereine: "you can use" ...?
cheers, rokr
Comment #3
merlinofchaos CreditAttribution: merlinofchaos commentedHm. Maybe the
<front>
check is happening *prior* to the empty path check? And we need to move it?Comment #4
dawehnerNo this cannot be. Front is translated in url()
Comment #5
rokr CreditAttribution: rokr commentedAttached is an exported view as requested by dereine.
It exactly represents the steps above to reproduce the behaviour.
cheers, Ronald
Comment #6
dawehnerHere is a patch for this
Comment #7
merlinofchaos CreditAttribution: merlinofchaos commentedCommitted to all branches.
Comment #8
rokr CreditAttribution: rokr commentedThis works for me, tanks for quick response.
cheers, Ronald