×
Please submit new Bug Reports on GitHub: github.com/Jensen-Technologies/component-creator-issues/issues
Link to edit item
MULTINOVUM sp. z o.o.
Yeni Üye
Posts: 15
4 yıl 4 ay önce #9776
Yazan: MULTINOVUM sp. z o.o.
Link to edit item, MULTINOVUM sp. z o.o. tarafından oluşturuldu
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?
Lütfen sohbete katılmak için Giriş ya da Hesap açın.
Carl Fuentes
Sorumlu
Posts: 28
4 yıl 4 ay önce #9777
Yazan: Carl Fuentes
Carl Fuentes tarafından Link to edit item konusunda yanıtlandı
Thank you. It is a bug and has been fixed. you can regenerate and install again to fix it.
Lütfen sohbete katılmak için Giriş ya da Hesap açın.
Sayfa oluşturma süresi: 0.044 saniye