I currently have blog listing pages set up at blog/[username] so I have blog/steve and blog/jane
I haven't decided what to use an a path for individual blog entries but had a question about tags. If I go to steve's blog and see he has tagged one of his blog entries with the tag "My Job", clicking on that will unfortunately take me to a listing of every members' blog entries that have been tagged with "My Job", not only Steve's. That doesn't seem like a logical result and it's a shame that it's not configurable, but that's life!
Now, would it be possible to use URL paths such as these:
blog/steve/my-job/
to access only Steve's blog entries tagged "My Job"? And:
blog/jane/my-job/
to access her "My Job" tagged blog entries?
That is ideally what I would like, I just don't know if that's possible using blog, taxonomy, pathauto or views modules. Has anyone set up anything like that? What URL path conventions do other people use on their blogs and how do you get only one member's blog entries showing for different tags...or do you not bother and go with the default behavior?
thanks
Neil
Quoting "Neil: esl-lounge.com" neil@esl-lounge.com:
Now, would it be possible to use URL paths such as these:
blog/steve/my-job/
to access only Steve's blog entries tagged "My Job"? And:
blog/jane/my-job/
to access her "My Job" tagged blog entries?
Yes it is possible. You need to turn on the path module and install the pathauto [1] module. Depending on how you setup pathauto for the taxonomy terms you should be able to have what you want.
[1] http://drupal.org/project/pathauto
Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/
thanks for the answer Earnie.
Yes it is possible. You need to turn on the path module and install the pathauto [1] module. Depending on how you setup pathauto for the taxonomy terms you should be able to have what you want.
Pathauto authors themselves suggest using views/args to achieve this. There used to be something called index aliases in PA but it's been deprecated.
Another query about blog URLs: isn't it bad practice to set up blog URLs to use vocab terms?
we use free tagging so users can append anything from 1-10 tags to each blog entry. Pathauto takes the first one and uses it in the URL so we may have a blog entry at:
blog/385/my-first-job (using blog/[nid]/[term-raw] as our path)
but then Johnny User goes in and alters either the tags (quite likely) or the order of them (not very likely) and suddenly the URL changes and potentially many hardcoded links across the site, on our forum, etc, to that blog entry die a horrible death. It would be the same if we used the title of the blog in the URL.
How do people cope with their users changing tags/titles if they use them in URL paths? Isn't it a total unmanageable nightmare?
Neil
----- Original Message ----- From: "Earnie Boyd" earnie@users.sourceforge.net To: support@drupal.org Sent: Saturday, February 23, 2008 7:22 PM Subject: Re: [support] Blogs: URL and Taxonomy questions
Quoting "Neil: esl-lounge.com" neil@esl-lounge.com:
Now, would it be possible to use URL paths such as these:
blog/steve/my-job/
to access only Steve's blog entries tagged "My Job"? And:
blog/jane/my-job/
to access her "My Job" tagged blog entries?
Yes it is possible. You need to turn on the path module and install the pathauto [1] module. Depending on how you setup pathauto for the taxonomy terms you should be able to have what you want.
[1] http://drupal.org/project/pathauto
Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/
-- [ Drupal support list | http://lists.drupal.org/ ]
Quoting "Neil: esl-lounge.com" neil@esl-lounge.com:
thanks for the answer Earnie.
Yes it is possible. You need to turn on the path module and install the pathauto [1] module. Depending on how you setup pathauto for the taxonomy terms you should be able to have what you want.
Pathauto authors themselves suggest using views/args to achieve this. There used to be something called index aliases in PA but it's been deprecated.
Another query about blog URLs: isn't it bad practice to set up blog URLs to use vocab terms?
we use free tagging so users can append anything from 1-10 tags to each blog entry. Pathauto takes the first one and uses it in the URL so we may have a blog entry at:
blog/385/my-first-job (using blog/[nid]/[term-raw] as our path)
At the node level I would use title and not [nid]/[term-raw]. You might consider even blog/[author-name]/[title]. Especially because of your next paragraph but I have a suggestion of that too.
I would use the category level to create paths for the terms. Note that the word ``category'' is used incorrectly in the pathauto admin IMO. It really means term. Of course it is broader giving you a path to list all blogs with that term. So blog/[cat-raw] would list all blogs with the term.
but then Johnny User goes in and alters either the tags (quite likely) or the order of them (not very likely) and suddenly the URL changes and potentially many hardcoded links across the site, on our forum, etc, to that blog entry die a horrible death. It would be the same if we used the title of the blog in the URL.
How do people cope with their users changing tags/titles if they use them in URL paths? Isn't it a total unmanageable nightmare?
Somewhere in the list of modules [1] for CCK there is a field type that allows you to enter a node reference. Then you don't need a hard coded paths unless of course it is to an external reference and who knows there may be modules to control that as well.
[1] http://drupal.org/project/Modules
Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/
OK, I have finalised my blog node path in PathAuto:
blog/[author-uid]/[yyyy][mm]/[nid]
so I get for example: blog/4/200802/269
What I'm now struggling with is using Views with arguments (my great weakness!) to give me access to URLs such as:
blogbydate/2/200801 to see all of UID 2's entries for Jan 2008.
I already have a View set up where if I go to /blogbydate, I get:
January 2008 (2) February 2008 (7)
where I can click on each and get a whole list of entries (in table or teaser/node format) for each month at the URL blogbydate/200802 for example. I suppose I can set up another View at "blogbyuser" at do a similar thing there but with "UID is author" as the argument. My question is...can I combine the two into one View with 2 arguments?
Neil
----- Original Message ----- From: "Earnie Boyd" earnie@users.sourceforge.net To: support@drupal.org Sent: Sunday, February 24, 2008 5:19 PM Subject: Re: [support] Blogs: URL and Taxonomy questions
Quoting "Neil: esl-lounge.com" neil@esl-lounge.com:
thanks for the answer Earnie.
Yes it is possible. You need to turn on the path module and install the pathauto [1] module. Depending on how you setup pathauto for the taxonomy terms you should be able to have what you want.
Pathauto authors themselves suggest using views/args to achieve this. There used to be something called index aliases in PA but it's been deprecated.
Another query about blog URLs: isn't it bad practice to set up blog URLs to use vocab terms?
we use free tagging so users can append anything from 1-10 tags to each blog entry. Pathauto takes the first one and uses it in the URL so we may have a blog entry at:
blog/385/my-first-job (using blog/[nid]/[term-raw] as our path)
At the node level I would use title and not [nid]/[term-raw]. You might consider even blog/[author-name]/[title]. Especially because of your next paragraph but I have a suggestion of that too.
I would use the category level to create paths for the terms. Note that the word ``category'' is used incorrectly in the pathauto admin IMO. It really means term. Of course it is broader giving you a path to list all blogs with that term. So blog/[cat-raw] would list all blogs with the term.
but then Johnny User goes in and alters either the tags (quite likely) or the order of them (not very likely) and suddenly the URL changes and potentially many hardcoded links across the site, on our forum, etc, to that blog entry die a horrible death. It would be the same if we used the title of the blog in the URL.
How do people cope with their users changing tags/titles if they use them in URL paths? Isn't it a total unmanageable nightmare?
Somewhere in the list of modules [1] for CCK there is a field type that allows you to enter a node reference. Then you don't need a hard coded paths unless of course it is to an external reference and who knows there may be modules to control that as well.
[1] http://drupal.org/project/Modules
Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/
-- [ Drupal support list | http://lists.drupal.org/ ]
Quoting "Neil: esl-lounge.com" neil@esl-lounge.com:
OK, I have finalised my blog node path in PathAuto:
blog/[author-uid]/[yyyy][mm]/[nid]
so I get for example: blog/4/200802/269
What I'm now struggling with is using Views with arguments (my great weakness!) to give me access to URLs such as:
blogbydate/2/200801 to see all of UID 2's entries for Jan 2008.
I already have a View set up where if I go to /blogbydate, I get:
January 2008 (2) February 2008 (7)
where I can click on each and get a whole list of entries (in table or teaser/node format) for each month at the URL blogbydate/200802 for example. I suppose I can set up another View at "blogbyuser" at do a similar thing there but with "UID is author" as the argument. My question is...can I combine the two into one View with 2 arguments?
Maybe http://drupal.org/project/calendar would fit the bill?
Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/