i have a set of tags which are years, but pathauto refuses to create a path out of these.
so for instance i have tags 1995, 1996, 2002, etc
instead of generating /tags/1995 , it insists on using /tags-1
category pattern settings for pathauto is:
tags/[cat]
using just tags/ it generates the same thing
all works well when i create a tag with y1995
unless there is a namespace issue with using numbers for tags, this seems like a bug to me :)
Comments
Comment #1
vm commentedWhile awaiting an answer from the dev, you may want to install the -dev version and see if you can replicate the problem you are having.
Comment #2
gregglesI had no problem creating tags with years in them. I agree with verymisunderstood that upgrading is a good idea.
Also, have you modified your module at all (e.g. with some of the patches floating around to fix the punctuation problem?)
Thanks.
If neither of those solves it, can you please report all the settings you have under "general" settings? Particularly the "transliteration" setting is important to me.
Comment #3
reneb commentedthanks for the quick replies.
to answer the last 2 questions from greggles;
1. no, no patches whatsoever applied
2. and transliteration is off
strings to remove are: a,an,as,at,before,but,by,for,from,is,in,into,like,of,off,on,onto,per,since,than,the,this,that,to,up,via,with
which i believe is the standard set
remains upgrading to the latest version.
will try that in the coming days when i have some time and will get back to you
thanks so far
btw a small remark: the problem does not seem to be whether or not there is a year ___in the tag, the problem seems to be the first letter;
1999 -> does not generate a path
y1999 -> does generate a path
Comment #4
gregglesCan you clarify the nature of your taxonomy? Single, multiple hierarchy? Freetagging? Etc.?
Comment #5
reneb commentedi have 1 vocabulary
Hierarchy is disabled
enabled are Free tagging, Multiple select and Required
Weight is set to 0
does this help?
tonight i hope to have time to upgrade to the latest dev version
Comment #6
gregglesThat does help - somewhat. I tried creating a year-term via the form at admin/content/taxonomy/14/add/term and that worked fine. And then I posted a blog post with this free tagging taxonomy on it and added a year that way and that worked as well.
So, I'm at a bit of a loss where the problem is, but hopefully we are getting closer.
Comment #7
reneb commentedthe way i had created all tags was freeform; typed them straight into the tags field when entering an article - can't be bothered to go through a separate admin page to add and administer every tag :)
tonight i upgraded to the latest dev version of pathauto (beta4) and the latest version of token
i added a new tag in the taxonomy page. all worked as it should.
the old tags still showed up as before; tags-1, tags-2, etc
i changed settings in the pathauto configuration as per INSTALL.TXT.
and selected batch conversion for links that did not have a tag yet.
no aliasses were created - suggesting that the "tags-" already was an alias.
when i want over to the taxonomy admin page, i created a new tag and the alias was properly created.
all old tags were still at tags01..
what i ended up having to do was open every single tag in edit mode and then save that page without changes and everything worked as it should ...
unless there was a configuration error - which is almost impossible as everything is now the same as it was.
seems to me there was a bug in the old version of pathauto which seems to have been fixed in the new version :)
hope this helps you pinpointing where the problem is.
if i can help in some way, let me know
thanks for helping me fix this!
ps in the install.tx it says "If you are upgrading from Pathauto 5.x-1.x to 5.x-2.x (or 6.x-2.x) then you will
probably need to change your patterns.
For content patterns:
[user] is now [author-name]
[cat] is now [term]"
i've foud this to be not true - entering [term] in patterns causes the pattern to stop working. pathauto still uses cat
Comment #8
gregglesWell, that's good news that it's fixed. You could have also used the bulkupdate function to recreate them (maybe - that doesn't always work...)
Thanks for the pointer about install.txt
Cat is now term for content patterns - it is still cat for category patterns.
Comment #9
reneb commentedi have tried bulk update. it did not work.
nothing was updated....
thanks for helping out
Comment #10
gregglesTo get bulk update to work you have to delete the aliases first. I need better help text about that and a better name. Maybe "bulk generate"?
Comment #11
reneb commentedyeah, one would expect "bulkupdate" to do the full process including deleting any old aliases by itself, automagically .... :)
Comment #12
gregglesIt's actually already called "bulk generate"
http://drupal.org/node/160822
I knew the idea seemed familiar...