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.
Could you integrate a free field for the 'more'-link? e.g. I would like to have Feature-Archive, or News-Archive instead of more
Comment | File | Size | Author |
---|---|---|---|
#12 | view.txt | 10.04 KB | Colorful Tones |
#12 | views-view--exchange-kicker2.tpl_.php_.txt | 2.24 KB | Colorful Tones |
#6 | views-more-text-2.patch | 4.87 KB | agentrickard |
#2 | views-more-text.patch | 4.65 KB | agentrickard |
#1 | views-more-text.patch | 4.86 KB | agentrickard |
Comments
Comment #1
agentrickardLike this?
Comment #2
agentrickardPatch accidentally included some extra code.
Comment #3
merlinofchaos CreditAttribution: merlinofchaos commentedWow, nice job, Ken.
Only one problem, I think: The definition for the option could include 'translatable' => TRUE and the default should then not be run through t().
Comment #4
agentrickardAlso makes sense.
Do you see any need to run argument replacement patterns here? (Which is something I thought about doing.)
Comment #5
merlinofchaos CreditAttribution: merlinofchaos commentedThat would allow us to get titles into the links, though because they're arguments they won't change per record so it'll be a lot of repeating data. If we do the current system you have set up will clash (%1 currently gets the argument whereas in substitution data %1 would get you the title for argument 1) -- it may be something we should make possible by removing that collison but not actually implement unless we can come up with a use case.
Comment #6
agentrickardOK. Baby steps. This patch just allows the changing of the text. No argument substitutions.
Comment #7
erikhopp CreditAttribution: erikhopp commentedI just tested this patch vs. 6.x-2.5 and it works! (It says that one hunk failed, but it was just a new line issue at the end of the views module.)
This would be a great improvement. Waiting for argument support shouldn't hold this patch up in my opinion.
Erik.
Comment #8
merlinofchaos CreditAttribution: merlinofchaos commentedCommitted! Thanks!
Comment #9
frankcarey CreditAttribution: frankcarey commentedto clarify, would this be a more link for truncated fields?
Comment #10
agentrickardNo. It make the 'more' link on a block view configurable.
Comment #12
Colorful Tones CreditAttribution: Colorful Tones commentedI just updated to 6.x-2.5 from previous 6.x and now my 'more' links are not displaying. I thought it had something to do with my custom template file for that View, because I had moved the 'print $more' call further up in the template in order to try and get it closer to my teaser. However, after removing my custom template file it did not solve. I confused as to whether this thread was related or not? What was this thread solving? Any suggestions?
Comment #13
merlinofchaos CreditAttribution: merlinofchaos commented'needs review' means there is a patch attached. Moving to the proper active status.
Comment #14
rfayThe "more" link seems to be untranslatable, despite the efforts in #3-6 above.
Comment #15
esmerel CreditAttribution: esmerel commentedIF there's a problem resulting from the original committed patch, that needs to be a new issue.