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.
when you create multiple blogger,and add "recent blog entry" block,click one entry,eg:mysite.com/node/15,
the block's "More" link point to "mysite.com/node/blog" on the current page,so that's wrong.
clear tarski_more_link function solve this problem.
Comment | File | Size | Author |
---|---|---|---|
#3 | tarski-more-link.patch | 580 bytes | juliangb |
Comments
Comment #1
Taxoman CreditAttribution: Taxoman commentedThis is by design, that block points to the page that will show all bloggers.
But it is not due to this theme anyway, it is Drupal core that sets that link in the block.
If you want it to point elsewhere, you have to customize your Drupal installation.
Comment #2
juliangb CreditAttribution: juliangb commentedI think there is a bug here - but I think that #1 has misunderstood the OP.
Let me rephrase:
The more link provided by core references the path "/blog", whereas the more link provided when using Tarski references the path "blog".
Because Tarski is using a path relative to the current page, this only works on the homepage.
You can try this on my website - the recent blog posts block displays at the bottom of the page:
- http://julian.granger-bevan.me shows the correct link.
- http://julian.granger-bevan.me/blog/websites does not.
The change that needs to be made is to replace:
return '<div class="more-link">' . t('<a href="@link" title="@title">more ›</a>', array('@link' => check_url($variables['url']), '@title' => $variables['title'])) . '</div>';
With:
return '<div class="more-link">' . l(t('more >'), $variables['url'], array('attributes' => array('title' => $variables['title']))) . '</div>';
This is a simple change - and I'll post this as a patch a bit later.
Comment #3
juliangb CreditAttribution: juliangb commentedHere's a patch, as promised.