× Please submit new Bug Reports on GitHub: github.com/Jensen-Technologies/component-creator-issues/issues

Link to edit item

4 năm 4 tháng trước #9776 bởi MULTINOVUM sp. z o.o.
Link to edit item was created by 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?

Vui lòng Đăng nhập hoặc Tạo tài khoản để tham gia cuộc hội thoại.

4 năm 4 tháng trước #9777 bởi Carl Fuentes
Replied by Carl Fuentes on topic Link to edit item
Thank you. It is a bug and has been fixed. you can regenerate and install again to fix it.

Vui lòng Đăng nhập hoặc Tạo tài khoản để tham gia cuộc hội thoại.

Thời gian tải trang: 0.045 giây
Powered by Kunena Forum

We use cookies so that you can place orders and we can provide a better service. You can control the use of cookies at the individual browser level. If you reject cookies, you may still use our website, but your ability to use some features or areas of our website may be limited.