Hi
I am trying to build an addition to drupal that gives each user a "subscription"--which, in this case, is a customized subset of all content in the system.
And, I want every user A to be able to see every other user B's subscription by giving B's user name.
So, on the page that shows you your subscription, I want to have at the top a textbox that allows you to type in user B's user name, click "go", and then be taken to user B's subscription (i.e. the same page again but with different values supplied for the arguments).
That is, I want to put a form on the same page that is displaying content (a list of nodes). Here's a text picture of what I want:
View subscription for user: [Greg ] [Go]
Viewing Greg's Subscription
Greg`s Story 1
Greg`s Story 2
...
Is this possible in drupal? Does anyone know any examples?
Thanks, Greg
Note: I hope to find out if drupal can do this or not. Workarounds or other ways to get the same functionality are appreciated but I hope that at least one person will (correctly :)) address whether drupal can do this or whether it certainly can't.
Comments
are you thinking of ...
Your description is still a bit vague, but do you want something a bit parallall to , for example, the 'tracker' option available for users?
Adding a form at the top of a page that allows you to switch the userID shouldn't be too hard.
I imagine you make a menu callback to service
/user/{uid}/subscriptions
or
/subscriptions/{uid}
as you prefer.
Then create an access control setting for access to that page, to ensure only certain users can use it.
Not too hard, I'd imagine, but it's a custom build.
Compare also with, for example, the way newsletter subsciptions can already be maintained under profile pages
/user/{uid}/edit/newsletter
which users and admins can get at.
.dan.
How to troubleshoot Drupal | http://www.coders.co.nz/
.dan. is the New Zealand Drupal Developer working on Government Web Standards
thanks... and...
thanks for the post, dan.
i'll try to clarify in case it spurs on any other insights. if not, it's cool.
conceptually, the idea is more in line with subscriptions/{uid}.
typically, you would show up to this subscriptions page and see your own subscription. but, as a way to promote the sharing of influences, you could also see anyone else's subscription and they could see yours.
so, say i want 1) a form with a text box in it, followed by 2) a list of teasers.
so, then 1) how do i specify that form? 2) how do i get drupal to draw that form on a content page?
enough details (e.g. function names, conceptual keywords) to allow me to use google and drupal search to figure out the rest on my own would be super :).
thanks,
gc