Use Joomla category in my component 3.x - Joomla! Forum - community, help and support
hello gang
i have component joomla! 2.5.x , i'm using category joomla!, it's working great.
i have same component made joomla 3.x , working great joomla 3.3 category stop working.
i have no error in datagrid when click on new got error
warning: invalid argument supplied foreach() in /var/www/vhosts/monjoomla.com/subdomains/j30/httpdocs/libraries/cms/helper/content.php on line 121
i investigate little , found out difference.
this url using rules (access.xml) in datagrid
/var/www/vhosts/monjoomla.com/subdomains/j30/httpdocs/administrator/components/com_kormc/access.xml
and url in detail page (after clicking new button)
/var/www/vhosts/monjoomla.com/subdomains/j30/httpdocs/administrator/components/com_kormc.104/access.xml
the second path not because of .104.
it new bug or have modify joomla 3.3x or cannot use anymore category joomla in our own component...
this url use go category
/administrator/index.php?option=com_categories&view=category&layout=edit&extension=com_kormc.104
like said work great in datagrid, it's in new detail page got error
thanks help
bill
i have component joomla! 2.5.x , i'm using category joomla!, it's working great.
i have same component made joomla 3.x , working great joomla 3.3 category stop working.
i have no error in datagrid when click on new got error
warning: invalid argument supplied foreach() in /var/www/vhosts/monjoomla.com/subdomains/j30/httpdocs/libraries/cms/helper/content.php on line 121
i investigate little , found out difference.
this url using rules (access.xml) in datagrid
/var/www/vhosts/monjoomla.com/subdomains/j30/httpdocs/administrator/components/com_kormc/access.xml
and url in detail page (after clicking new button)
/var/www/vhosts/monjoomla.com/subdomains/j30/httpdocs/administrator/components/com_kormc.104/access.xml
the second path not because of .104.
it new bug or have modify joomla 3.3x or cannot use anymore category joomla in our own component...
this url use go category
/administrator/index.php?option=com_categories&view=category&layout=edit&extension=com_kormc.104
like said work great in datagrid, it's in new detail page got error
thanks help
bill
me again :o)
i investigate more, , maybe post in wrong forum, because think it's real bug or sort....
in /administrator/components/com_categories/views/category/view.html.php
to action rules code using line
the problem come
$this->state->get('category.extension')
it return component name .104,
in joomla 2.5.x use this
the
$this->state->get('category.component')
return correct name
i modify joomla 3.3.x code use same variable,
and fix issue joomla 3.3.x
the difference "category.extension" replace 'category.component' , problem solve
hop else.
thanks
i investigate more, , maybe post in wrong forum, because think it's real bug or sort....
in /administrator/components/com_categories/views/category/view.html.php
to action rules code using line
code: select all
$this->cando = jhelpercontent::getactions($this->state->get('category.extension'), 'category', $this->item->id);
the problem come
$this->state->get('category.extension')
it return component name .104,
in joomla 2.5.x use this
code: select all
$this->cando = categorieshelper::getactions($this->state->get('category.component'));
the
$this->state->get('category.component')
return correct name
i modify joomla 3.3.x code use same variable,
code: select all
$this->cando = jhelpercontent::getactions($this->state->get('category.component'), 'category', $this->item->id);
and fix issue joomla 3.3.x
the difference "category.extension" replace 'category.component' , problem solve
hop else.
thanks
Comments
Post a Comment