Closed (fixed)
Project:
Views Bookmark
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
4 Mar 2008 at 05:02 UTC
Updated:
22 Feb 2009 at 03:56 UTC
I'm sorry I'm all over this module lately but I really like it.
Normally it would be useful for a user to link to their "bookmarks" via username in the URL. For example: www.mysite.com/bookmarks/username.
I am only able to achieve this path effect by using usernode and grabbing the author id and passing it to a view I have created with the user id in the url and then displaying the view on the usernode.
Telling a friend to visit "My favorite books" by going to mysite.com/username is much easier than mysite.com/uid
Comments
Comment #1
mooffie commentedThere's a subtle problem:
This URL must be found on the page somewhere (or in the browser's address bar), or else you won't be able to right click on it, 'copy to clipboard', and paste it into your email message.
And that's the problem. Drupal 5 itself can't do that (You can't put a 'bookmarks/david' on the menu, in Drupal 5, without using some custom code).
So you'll have to write custom code anyway. And if you'll be writing custom code anyway, what's the use in the half baked cake we're going to give you by supporting a username argument?
But there's one more argument against supporting a username argument:
Bookmarks are just one goody. There are infinite other goodies: galleries, buddies, posts, etc. A solution that supports only one goody is not 'The Drupal Way'.
Fortunately, I see some easy solution:
Using this module you can already put an 'example.com/user/123/bookmarks' tab on the profile page. All you have to do is create a 'bookmarks/david' alias for this URL. I just had a quick look at the 'pathauto' module and I'm surprised to see that, it seems, it doesn't have this functionality. Coding this is quite trivial. I suggest opening a feature request against pathauto.
Please let us know your thoughts on this. I might be wrong on some (or all! ;-) points.
Comment #2
quicksketchClosing the Views Bookmark queue. This module has been replaced by Flag. If interested in migrating the issue to Flag, please move this issue or open a new issue in the Flag queue.