×
Please submit new Bug Reports on GitHub: github.com/Jensen-Technologies/component-creator-issues/issues
Link to edit item
MULTINOVUM sp. z o.o.
New Member
Posts: 15
pred 4 rokmi 4 mesiacmi #9776
od MULTINOVUM sp. z o.o.
Link to edit item bolo vytvorené MULTINOVUM sp. z o.o.
In single item, EDIT button has such link:
<a href="<?php echo JRoute::_('index.php?option=com_mycomponent&task=element.edit&id='.$this->item->id); ?>"><?php echo JText::_("COM_MYCOMPONENT_EDIT_ITEM"); ?></a>
it doesn't work
In list of items that link is a little different:
<a href="<?php echo JRoute::_('index.php?option=com_mycomponent&task=elementform.edit&id=' . $item->id, false, 2); ?>" class="btn btn-mini" type="button"><i class="icon-edit" ></i></a>
I change "element.edit to elementform.edit in single item view and now it works.
Is it bug or I made some building component mistake?
<a href="<?php echo JRoute::_('index.php?option=com_mycomponent&task=element.edit&id='.$this->item->id); ?>"><?php echo JText::_("COM_MYCOMPONENT_EDIT_ITEM"); ?></a>
it doesn't work
In list of items that link is a little different:
<a href="<?php echo JRoute::_('index.php?option=com_mycomponent&task=elementform.edit&id=' . $item->id, false, 2); ?>" class="btn btn-mini" type="button"><i class="icon-edit" ></i></a>
I change "element.edit to elementform.edit in single item view and now it works.
Is it bug or I made some building component mistake?
Prosím Prihlásiť alebo Registrácia pre zdieľanie konverzácie.
Carl Fuentes
Moderator
Posts: 28
pred 4 rokmi 4 mesiacmi #9777
od Carl Fuentes
Odpoveď od Carl Fuentes na tému Link to edit item
Thank you. It is a bug and has been fixed. you can regenerate and install again to fix it.
Prosím Prihlásiť alebo Registrácia pre zdieľanie konverzácie.
Čas vytvorenia stránky: 0.051 sekúnd