Bug in Alternate Layout for Category-Layout - Joomla! Forum - community, help and support
hello folks,
i have tried set own layout portfolio , not work. joomla still use layout wich set menu-item. have looked solution in web, don't find anything. don't know if mistake comes me or joomla.
now, have looked alternate layout set, , found view.html.php of com_content, com_contact, com_weblinks , com_newsfeeds. there following find in files:
components/com_content/views/category/view.html.php (line 119)
components/com_contact/views/category/view.html.php (line 111)
components/com_weblinks/views/category/view.html.php (line 101)
components/com_newsfeeds/views/category/view.html.php (line 109)
i change line following:
then works fine.
i have test com_content/views/categories , have test if alternate layout selected , not selected. layout selected category "portfolio" use it, , blog-layout selected use blog-layout. before changing not work.
do understand me. english not best, can better speak german. ;-)
one more thing in context: have test set layout portfolio.xml, (http://docs.joomla.org/layout_overrides ... menu_items). not work too. if have select layout via menu item, can't select category , if have save it, there comes error in frontend. there no categorie_id in url (id=10). if add right categorie_id url, error on frontend away , alternate layout menu-item not loaded.
i have tried set own layout portfolio , not work. joomla still use layout wich set menu-item. have looked solution in web, don't find anything. don't know if mistake comes me or joomla.
now, have looked alternate layout set, , found view.html.php of com_content, com_contact, com_weblinks , com_newsfeeds. there following find in files:
components/com_content/views/category/view.html.php (line 119)
components/com_contact/views/category/view.html.php (line 111)
components/com_weblinks/views/category/view.html.php (line 101)
components/com_newsfeeds/views/category/view.html.php (line 109)
code: select all
if ((!$active) || ((strpos($active->link, 'view=category') === false) || (strpos($active->link, '&id=' . (string) $this->category->id) === false))) {i change line following:
code: select all
if (isset($active) || ((strpos($active->link, 'view=category') === false) || (strpos($active->link, '&id=' . (string) $category->id) === false))) {then works fine.
i have test com_content/views/categories , have test if alternate layout selected , not selected. layout selected category "portfolio" use it, , blog-layout selected use blog-layout. before changing not work.
do understand me. english not best, can better speak german. ;-)
one more thing in context: have test set layout portfolio.xml, (http://docs.joomla.org/layout_overrides ... menu_items). not work too. if have select layout via menu item, can't select category , if have save it, there comes error in frontend. there no categorie_id in url (id=10). if add right categorie_id url, error on frontend away , alternate layout menu-item not loaded.
could please create tracker(with link thread) @ http://joomlacode.org/gf/project/joomla ... er_id=8103 ?
your explanation clear.
your explanation clear.
Comments
Post a Comment