how to add current user id to menu link in joomla
I want to pass the user id as filter with menu link to select items from list of database object that belong to that user. How to add current user id to menu link. The xml file parmaters are static I think. They doesnt work.
You don't need to add the User ID to the menu link (and security wise it's probably a very bad idea). You can retrieve the User ID of the current user anywhere in Joomla!.
e.g. ( you haven't specified your Joomla! version but for 2.5 you can get it this way )
$user = JFactory::getUser(); $userId = $user->get('id');