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've migrated a blog to D7, but not all of the users. The content is now marked as being owned by Anonymous. Fine.
However, it's bad form (and grammar) to link to /blog/0 especially when Access denied is displayed on the link when you get there.
I had to create a view to find the anonymous content. I had thought I would be able to do that in core but couldn't find it.
The phrase Anonymous's blog should not be linked to, just like the user Anonymous should never be linked to.
Comment | File | Size | Author |
---|---|---|---|
#1 | 1081556-01-anonymous-blog-link.patch | 1 KB | linclark |
Comments
Comment #1
Anonymous (not verified) CreditAttribution: Anonymous commentedThis patch only adds the user's blog to the array if the uid does not equal 0.
It can be tested by creating a blog post as the Anonymous user and creating another blog post as a logged in user. It should show Home >> Blog for the Anon user's post and Home >> Blog >> user's blog for the logged in user.
Comment #2
deekayen CreditAttribution: deekayen commented#233301-125: Remove blog module from core removed blog from core.
Comment #3
Tor Arne Thune CreditAttribution: Tor Arne Thune commentedThis issue should probably be moved back to Drupal core version 7.x-dev after it has been fixed here. It's a bug that should be fixed in Drupal 7 as well.
Comment #4
Tor Arne Thune CreditAttribution: Tor Arne Thune commentedLet's face it, this issue wil not get much attention here. Moving to 7.x-dev of Drupal core, and I will make sure to move it back here if it gets fixed for D7.
Comment #5
dendritic CreditAttribution: dendritic commentedI was just searching for a way to fix this in 7.15. I used this CSS:
.node-blog li.blog_usernames_blog a[href="/blog/0"] {display:none;}
Comment #6
mgiffordthis should be looked at in D8.
Comment #7
mgifford1: 1081556-01-anonymous-blog-link.patch queued for re-testing.
Comment #9
mgiffordMoving from Core.
Comment #10
nevergone CreditAttribution: nevergone commentedOutdated issue.