We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Joomla! 3.4.5 Stable [ Ember ] 22-October-2015 21:30 GMT Clean install with no additional extensions.
Material with all additional parameters disabled.
var_export($displayData) in html/layouts/joomla/content/info_block/block.php
array ( 'item' => stdClass::__set_state(array( 'id' => '1', 'asset_id' => '54', 'title' => 'Главная', 'alias' => 'glavnaya', 'introtext' => '<p>Это главная страница.</p>', 'fulltext' => '', 'state' => '1', 'catid' => '2', 'created' => '2015-12-07 11:58:24', 'created_by' => '906', 'created_by_alias' => '', 'modified' => '2015-12-07 13:12:19', 'modified_by' => '906', 'checked_out' => '906', 'checked_out_time' => '2015-12-07 13:29:17', 'publish_up' => '2015-12-07 11:58:24', 'publish_down' => '0000-00-00 00:00:00', 'images' => '{"image_intro":"","float_intro":"","image_intro_alt":"","image_intro_caption":"","image_fulltext":"","float_fulltext":"","image_fulltext_alt":"","image_fulltext_caption":""}', 'urls' => '{"urla":false,"urlatext":"","targeta":"","urlb":false,"urlbtext":"","targetb":"","urlc":false,"urlctext":"","targetc":""}', 'attribs' => '{"show_title":"0","link_titles":"0","show_tags":"0","show_intro":"0","info_block_position":"2","show_category":"0","link_category":"0","show_parent_category":"0","link_parent_category":"0","show_author":"0","link_author":"0","show_create_date":"0","show_modify_date":"0","show_publish_date":"0","show_item_navigation":"0","show_icons":"0","show_print_icon":"0","show_email_icon":"0","show_vote":"0","show_hits":"0","show_noauth":"","urls_position":"","alternative_readmore":"","article_layout":"","show_publishing_options":"","show_article_options":"","show_urls_images_backend":"","show_urls_images_frontend":""}', 'version' => '4', 'ordering' => '0', 'metakey' => '', 'metadesc' => '', 'access' => '1', 'hits' => '40', 'metadata' => Joomla\Registry\Registry::__set_state(array( 'data' => stdClass::__set_state(array( 'robots' => '', 'author' => '', 'rights' => '', 'xreference' => '', )), 'separator' => '.', )), 'featured' => '1', 'language' => '*', 'xreference' => '', 'category_title' => 'Uncategorised', 'category_alias' => 'uncategorised', 'category_access' => '1', 'author' => 'Super User', 'parent_title' => 'ROOT', 'parent_id' => '1', 'parent_route' => '', 'parent_alias' => 'root', 'rating' => NULL, 'rating_count' => NULL, 'params' => Joomla\Registry\Registry::__set_state(array( 'data' => stdClass::__set_state(array( 'article_layout' => '_:default', 'show_title' => '1', 'link_titles' => '1', 'show_intro' => '1', 'show_category' => '1', 'link_category' => '1', 'show_parent_category' => '0', 'link_parent_category' => '0', 'show_author' => '1', 'link_author' => '0', 'show_create_date' => '0', 'show_modify_date' => '0', 'show_publish_date' => '1', 'show_item_navigation' => '1', 'show_vote' => '0', 'show_readmore' => '1', 'show_readmore_title' => '1', 'readmore_limit' => '100', 'show_icons' => '1', 'show_print_icon' => '1', 'show_email_icon' => '1', 'show_hits' => '1', 'show_noauth' => '0', 'show_publishing_options' => '1', 'show_article_options' => '1', 'save_history' => '1', 'history_limit' => 10, 'show_urls_images_frontend' => '0', 'show_urls_images_backend' => '1', 'targeta' => 0, 'targetb' => 0, 'targetc' => 0, 'float_intro' => 'left', 'float_fulltext' => 'left', 'category_layout' => '_:blog', 'show_category_title' => '0', 'show_description' => '0', 'show_description_image' => '0', 'maxLevel' => '1', 'show_empty_categories' => '0', 'show_no_articles' => '1', 'show_subcat_desc' => '1', 'show_cat_num_articles' => '0', 'show_base_description' => '1', 'maxLevelcat' => '-1', 'show_empty_categories_cat' => '0', 'show_subcat_desc_cat' => '1', 'show_cat_num_articles_cat' => '1', 'num_leading_articles' => '1', 'num_intro_articles' => '4', 'num_columns' => '2', 'num_links' => '4', 'multi_column_order' => '0', 'show_subcategory_content' => '0', 'show_pagination_limit' => '1', 'filter_field' => 'hide', 'show_headings' => '1', 'list_show_date' => '0', 'date_format' => '', 'list_show_hits' => '1', 'list_show_author' => '1', 'orderby_pri' => 'order', 'orderby_sec' => 'rdate', 'order_date' => 'published', 'show_pagination' => '2', 'show_pagination_results' => '1', 'show_feed_link' => '1', 'feed_summary' => '0', 'show_page_heading' => NULL, 'menu_text' => 1, 'secure' => 0, 'page_title' => 'Главная', 'page_description' => NULL, 'page_rights' => NULL, 'robots' => NULL, 'show_tags' => '0', 'info_block_position' => '2', 'access-view' => true, )), 'separator' => '.', )), 'tagLayout' => JLayoutFile::__set_state(array( 'layoutId' => 'joomla.content.tags', 'basePath' => NULL, 'fullPath' => NULL, 'includePaths' => array ( 0 => 'P:\\Data\\Programs\\UniServerZ\\vhosts\\clen\\templates/clen-clean/html/layouts/com_content', 1 => 'P:\\Data\\Programs\\UniServerZ\\vhosts\\clen/components/com_content/layouts', 2 => 'P:\\Data\\Programs\\UniServerZ\\vhosts\\clen\\templates/clen-clean/html/layouts', 3 => 'P:\\Data\\Programs\\UniServerZ\\vhosts\\clen/layouts', ), 'options' => Joomla\Registry\Registry::__set_state(array( 'data' => stdClass::__set_state(array( 'component' => 'com_content', 'client' => 0, )), 'separator' => '.', )), 'debugMessages' => array ( ), )), 'slug' => '1:glavnaya', 'catslug' => '2:uncategorised', 'parent_slug' => NULL, 'readmore_link' => '/index.php/home', 'text' => '<p>Это главная страница.</p> ', 'tags' => JHelperTags::__set_state(array( 'tagsChanged' => false, 'replaceTags' => false, 'typeAlias' => NULL, 'itemTags' => array ( ), )), 'event' => stdClass::__set_state(array( 'afterDisplayTitle' => '', 'beforeDisplayContent' => '', 'afterDisplayContent' => '', )), 'prev' => '', 'next' => '', 'prev_label' => '', 'next_label' => '', )), 'params' => Joomla\Registry\Registry::__set_state(array( 'data' => stdClass::__set_state(array( 'article_layout' => '_:default', 'show_title' => '1', 'link_titles' => '1', 'show_intro' => '1', 'show_category' => '1', 'link_category' => '1', 'show_parent_category' => '0', 'link_parent_category' => '0', 'show_author' => '1', 'link_author' => '0', 'show_create_date' => '0', 'show_modify_date' => '0', 'show_publish_date' => '1', 'show_item_navigation' => '1', 'show_vote' => '0', 'show_readmore' => '1', 'show_readmore_title' => '1', 'readmore_limit' => '100', 'show_icons' => '1', 'show_print_icon' => '1', 'show_email_icon' => '1', 'show_hits' => '1', 'show_noauth' => '0', 'show_publishing_options' => '1', 'show_article_options' => '1', 'save_history' => '1', 'history_limit' => 10, 'show_urls_images_frontend' => '0', 'show_urls_images_backend' => '1', 'targeta' => 0, 'targetb' => 0, 'targetc' => 0, 'float_intro' => 'left', 'float_fulltext' => 'left', 'category_layout' => '_:blog', 'show_category_title' => '0', 'show_description' => '0', 'show_description_image' => '0', 'maxLevel' => '1', 'show_empty_categories' => '0', 'show_no_articles' => '1', 'show_subcat_desc' => '1', 'show_cat_num_articles' => '0', 'show_base_description' => '1', 'maxLevelcat' => '-1', 'show_empty_categories_cat' => '0', 'show_subcat_desc_cat' => '1', 'show_cat_num_articles_cat' => '1', 'num_leading_articles' => '1', 'num_intro_articles' => '4', 'num_columns' => '2', 'num_links' => '4', 'multi_column_order' => '0', 'show_subcategory_content' => '0', 'show_pagination_limit' => '1', 'filter_field' => 'hide', 'show_headings' => '1', 'list_show_date' => '0', 'date_format' => '', 'list_show_hits' => '1', 'list_show_author' => '1', 'orderby_pri' => 'order', 'orderby_sec' => 'rdate', 'order_date' => 'published', 'show_pagination' => '2', 'show_pagination_results' => '1', 'show_feed_link' => '1', 'feed_summary' => '0', 'show_page_heading' => NULL, 'menu_text' => 1, 'secure' => 0, 'page_title' => 'Главная', 'page_description' => NULL, 'page_rights' => NULL, 'robots' => NULL, 'show_tags' => '0', 'info_block_position' => '2', 'access-view' => true, )), 'separator' => '.', )), 'position' => 'above', )
So, for example, $displayData['item'] -> attribs show_hits is 0, but $displayData['params']->get('show_hits') will return 1.
$displayData['item'] -> attribs
$displayData['params']->get('show_hits')
The text was updated successfully, but these errors were encountered:
For anyone in the future with similar problem finding this issue dirty fix is:
// html/layouts/joomla/content/info_block/block.php $attribs = json_decode($displayData['item'] -> attribs); foreach($attribs as $k => $v) { $displayData['params'] -> set($k, $v); }
or:
// html/com_content/article/default.php $attribs = json_decode($this -> item -> attribs); foreach($attribs as $k => $v) { $this -> item -> params -> set($k, $v); }
Sorry, something went wrong.
Lurking for proper answer you could check if you are linking to material via menu link. As it seems menu link view options ovveride material ones.
Closing as this is the expected behaviour
No branches or pull requests
Joomla! 3.4.5 Stable [ Ember ] 22-October-2015 21:30 GMT
Clean install with no additional extensions.
Material with all additional parameters disabled.
var_export($displayData) in html/layouts/joomla/content/info_block/block.php
So, for example,
$displayData['item'] -> attribs
show_hits is 0, but$displayData['params']->get('show_hits')
will return 1.The text was updated successfully, but these errors were encountered: