with the standard 1.5.1 release
when displaying an article (com_content/view/article/view_html.php)
with
$params =& $mainframe->getParams('com_content');
or $params =& JComponentHelper::getParams('com_content');
that must have the same effect !
I get that :
print_r($params);
JParameter Object ( [_raw] => show_noauth=0 show_title=1 link_titles=0 show_intro=1 show_section=0 link_section=0 show_category=0 link_category=0 show_author=1 show_create_date=1 show_modify_date=1 show_item_navigation=0 show_readmore=1 show_vote=0 show_icons=1
show_pdf_icon=1 show_print_icon=1 show_email_icon=1 show_hits=1 feed_summary=0 [_xml] => [_elements] => Array ( ) [_elementPath] => Array ( [0] => X:\usr2\dev\joomla_150\libraries\joomla\html\parameter\element ) [_defaultNameSpace] => _default [_registry] => Array ( [_default] => Array ( [data] => stdClass Object ( [show_noauth] => 0 [show_title] => 1 [link_titles] => 0 [show_intro] => 1 [show_section] => 0 [link_section] => 0 [show_category] => 0 [link_category] => 0 [show_author] => 1 [show_create_date] => 1 [show_modify_date] => 1 [show_item_navigation] => 0 [show_readmore] => 1 [show_vote] => 0 [show_icons] => 1
[show_pdf_icon] => 0 [show_print_icon] => 0 [show_email_icon] => 0 [show_hits] => 1 [feed_summary] => 0 [show_description] => 0 [show_description_image] => 0 [num_leading_articles] => 1 [num_intro_articles] => 4 [num_columns] => 2 [num_links] => 4 [show_pagination] => 2 [show_pagination_results] => 1 [show_feed_link] => 1 [page_title] => The News [show_page_title] => 1 [menu_image] => -1 [secure] => 0 [page_description] => Joomla! - le portail dynamique et système de gestion de contenu ) ) ) [_errors] => Array ( ) )
value are overwritten by the menu parameters.
For me it's a bug that I have often signalled without anwer.
JComponentHelper::getParams MUST RETURN ONLY COMPONENTS LEVEL PARAMETERS
If its not a bug please explain how to do what i explain in my previous post.
see my last post :in general forum.
http://forum.joomla.org/viewtopic.php?f=428&t=265059other things on parameters aspects :
why "show_vote", "show_icons" parameters are not in administrator/components/com_content/models/article.xml ?