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.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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 )