Just like with drupal.org -- when a user logs into their my account page (http://drupal.org/user/#####)
they are presented with a link under Manage Newsletters (http://drupal.org/user/######/edit/newsletter).
I am attempting to do a similiar type link under my user's my account page -- however -- I believe the wild card (%) im using is not correct as the link does not function properly unless a specific user# is provided in place of the wild card place holder.
Current my link is as follows:
href="http://example.com/user/%/edit/Real%20Estate%20Alerts">Real Estate Alerts
What do I need to replace the % wild card with to make this link function properly -- thanks in advance for any help or direction.
Please not the link's HTML tags have been intentionally ommitted for purposes of posting it to the forum.
Comments
You need to provide the user
You need to provide the user id a wild card will not work.
How do you get a link to recognize the User's ID?
Thanks -- but there has to be away for a link to recognize the user -- can anyone point me in the right direction???????
Well you could access the
Well you could access the the global user object.
Dynamic Link Generation - Problem Solved
Well after some self research and another search on the forum using different keywords -- the problems has been solved -- my thanks to all.
The answer was found at:
http://drupal.org/node/10036
My working code:
and it works like a Lucky Charm.
Does anyone see any issues with this code?