I've setup PathAuto for my custom content type as follows: customcontenttype/[yyyy]/[mm]/[dd]/[author-name-raw]/[title-raw]

I've 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.

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.

So how can I get PathAuto to pickup on Anonymous user postings as [author-name-raw]=Anonymous ?
Thanks in advance for any/all comments/suggestions,
-Chris

EDIT
Also submitted as issue to Token: http://drupal.org/node/586860

Comments

ChrisRut’s picture

Ok, so I was able to patch the token module to get it to populate [author-name] & [author-name-raw] as "anonymous".
See the patch: http://drupal.org/node/586860#comment-2095244

However, this still leaves me with the issue of the view not displaying a username for posts by an anonymous user (see same screenshot as before).
So I did some researching and found this issue/patch #368234 that has already been committed to views back in February, version 2.3 (were now currently in 2.6).
However I can't get it to work, er I don't understand how to get it to work?

EDIT: After further review this issue/patch #368234 only affects the use of "Fields" but doesn't correct the issue I am having with using "User: Name" as an argument.

New Issue Submitted to VIEWS: http://drupal.org/node/591262

Any/All Help is greatly appreciated.

ChrisRut’s picture

A solution that fixes both problems, thanks to merlinofchaos on IRC.
Simply change the MySQL DB table users where UID = 0 set name = Anonymous