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?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

smitty created an issue. See original summary.

vorvor’s picture

Status: Active » Needs review
FileSize
864 bytes

Read more link text wasn't tokenized. In this patch I pass the link text through tokenize_value().

smitty’s picture

Status: Needs review » Reviewed & tested by the community

This patch works great!

Thanks a lot!!

DamienMcKenna’s picture

Category: Support request » Bug report
Status: Reviewed & tested by the community » Needs work

This is a bug report. Also, can you please upload the patch without the commented-out code? Thanks.