JComponentHelper::getParams does not return components params - Joomla! Forum - community, help and support


jcomponenthelper::getparams  not return components params.
the first call function return expected answer
but after content overwritten current menu params values.

example std install (changelog.php 9111 2007-10-02 22:27:35z jinx)

i have set show_pdf_icon 0 in component params .
i have added  2 lines in com_content/view/section/view_html.php  check :

$params2 = &jcomponenthelper::getparams( 'com_content' );
print_r($params2);

when launching section blog example page function (item id 44) :


jparameter object ( [_raw] => show_noauth=0 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=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 [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 [show_page_title] => 1 [page_title] => example of section blog layout (faq section) [show_description] => 0 [show_description_image] => 0 [num_leading_articles] => 1 [num_intro_articles] => 4 [num_columns] => 2 [num_links] => 4 [show_title] => 1 [menu_image] => -1 [secure] => 0 [show_pagination] => 2 [show_pagination_results] => 1 [page_description] => joomla! - le portail dynamique et système de gestion de contenu ) ) ) [_errors] => array ( ) )

the component param show_pdf_icon has been overwritten menu param.
this not problem in case disturbing when want component params.

is wanted behavior, , if reason ?




.






Comments

Popular posts from this blog

DHT11 Time out error using v0.4.1library

Sketch upload fails with Java error (___REMOVE___/bin/avrdude)!

Arduino Uno + KTY81/210 temperature sensor