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.
I have a view using a contextual filter (Content: Author UID; Provide default value: User ID from URL) to show all content created by a specific user.
The title of this view is: "Content created by %1" whereby %1 returns the username.
Now I wanted to do the same in the "More Link". So I entered "More content created by %1" in the "More Link text". But here %1 isn't replaced by the username.
Am I doing something wrong or isn't it possible to use arguments in read more text?
Comment | File | Size | Author |
---|---|---|---|
#2 | views_readmore_tokenize-2656956-1.patch | 864 bytes | vorvor |
|
Comments
Comment #2
vorvor CreditAttribution: vorvor at Cheppers commentedRead more link text wasn't tokenized. In this patch I pass the link text through tokenize_value().
Comment #3
smitty CreditAttribution: smitty commentedThis patch works great!
Thanks a lot!!
Comment #4
DamienMcKennaThis is a bug report. Also, can you please upload the patch without the commented-out code? Thanks.