I am in joomla 2.5 and I try to get the id of a menu, I have the name, the alias
exemple :
menu = FAQ-> menu item =FAQ
I have try :
$app = JFactory::getApplication('site');
$params = $app->getParams();
$idfaq = $params->get('content_id_faq');
but i am a newbie so I dont even know if content_id_faq is correct
thanks
Have a look at here for more information on how to get the correct item.