Thatās very good news, @medhieval. Thanks a lot for your help.
Itās easier for me to put the specific changes here, Iād say. So, here we goā¦
admin/themes/default/index.php
<?php echo link_to_item(__('Edit'), array(), 'edit')?>
becomes
<?php echo link_to_item(__('Edit'), array(), 'edit') . " " . link_to_item(__('Duplicate'), array(), 'duplicate'); ?>
I guess here we can use the trick with the injection of code.
admin/themes/default/items/show.php
added (again, we could use injection)
<?php echo link_to_item(__('Duplicate'), array('class'=>'big green button'), 'duplicate'); ?>
just after
<?php echo link_to_item(__('Edit'), array('class'=>'big green button'), 'edit'); ?>
admin/themes/default/items/browse.php
added (again, we could use injection)
<li><?php echo link_to_item(__('Duplicate'), array(), 'duplicate'); ?></li>
just after
<li><?php echo link_to_item(__('Edit'), array(), 'edit'); ?></li>
admin/themes/default/items/tag-form.php
added (necessary; otherwise, loaded existing tags will not be saved for the new item)
$request = Zend_Controller_Front::getInstance()->getRequest();
$controller = $request->getControllerName();
$action = $request->getActionName();
if ($controller == āitemsā && $action == āduplicateā) {
$tags_text = implode(option(ātag_delimiterā), $tags);
} else {
$tags_text = āā;
}
just after
$tags = $item->getTags();
and modified
<input type=āhiddenā name=ātags-to-addā id=ātags-to-addā value="ā />
into
<input type=āhiddenā name=ātags-to-addā id=ātags-to-addā value="<?php echo $tags_text?>ā />
(watch out for last single quotes, they actually are double quotes but could not visualize the code here if not using a single quote)