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 setup PathAuto for my custom content type as follows: customcontenttype/[yyyy]/[mm]/[dd]/[author-name-raw]/[title-raw]
I've also tried using the non raw version of author-name as the PathAuto: customcontenttype/[yyyy]/[mm]/[dd]/[author-name]/[title-raw]
But it still won't create a listing for anonymous. Instead Anonymous user posts are placed in: I've also tried using the non raw version of author-name as the PathAuto: customcontenttype/[yyyy]/[mm]/[dd]/[title-raw] (notice there is no [author-name]).
See also: http://drupal.org/node/586828
Comment | File | Size | Author |
---|---|---|---|
#5 | token_node.inc_.patch | 710 bytes | ChrisRut |
Comments
Comment #1
ChrisRut CreditAttribution: ChrisRut commentedOops, I copy and pasted that line incorrect, it should be:
But it still won't create a listing for anonymous. Instead Anonymous user posts are placed in: "customcontenttype/[yyyy]/[mm]/[dd]/[title-raw]" (notice there is no [author-name]).
Comment #2
ChrisRut CreditAttribution: ChrisRut commentedAlso wanted to point out...
I created a view similar to a blog:
Node: created year
Node: created month
Node: created day
User: Name
Arguments Screenshot
So "/2009/09/23/Administrator" will list all the nodes created by the Administrator on 9/23/09, and "/2009/09/23/" should list all the users who created nodes on 9/23/09, however there is a catch, if the node was created by an "Anonymous" user, there is no link.
Screenshot - Notice there is a listing for Administrator, and it looks like the administrator posted 3 nodes, and there is another user with NO TITLE who posted 1 (that is the Anonymous Post).
And when I go to the node manually, and I see it is located at "customcontenttype/[yyyy]/[mm]/[dd]/[title-raw]", notice there is no [author-name] in there.
Comment #3
ChrisRut CreditAttribution: ChrisRut commentedThe corresponding lines of code are: (grep -inr "author" .)
Would it be possible to add the following check:
Comment #4
ChrisRut CreditAttribution: ChrisRut commented:delete:
Comment #5
ChrisRut CreditAttribution: ChrisRut commentedSee attached patch.
Worked for me.
Needs Review
Comment #6
ChrisRut CreditAttribution: ChrisRut commentedI also found another solution that works thanks to merlinofchaos on IRC: Simply change the MySQL DB table "users" where "UID" = 0 set "name" = Anonymous
Comment #7
Dave ReidFixed in CVS. Thanks!
http://drupal.org/cvs?commit=337854