﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	blockedby	blocking
1860	Neuer Hook: admin/includes/modules/categories_view.php	Karsta	somebody	"Vorschlag für einen neuen Hookpoint zur Erweiterung der Produktbearbeitung aus der Produktübersicht im Adminbereich.
{{{
#!php
           <td class=""categories_view_data txta-l"" style=""padding-left: 8px;"">
                   <?php
                   echo '<a href=""'. xtc_href_link(FILENAME_CATEGORIES, xtc_get_all_get_params(array('cPath', 'action', 'pID', 'cID')) . 'cPath=' . $cPath . '&pID=' . $products['products_id'] ) . '&action=new_product' . '"">' . xtc_image(DIR_WS_ICONS . 'icon_edit.gif', ICON_EDIT, '', '', $icon_padding). '</a>';
                   if (function_exists('attributes_iframe_link')) {
                     echo attributes_iframe_link($products['products_id'], true);
                   } else {
                     echo '<a href=""'. xtc_href_link(FILENAME_NEW_ATTRIBUTES, xtc_get_all_get_params(array('cPath', 'action', 'pID', 'cID')) . 'cpath=' . $cPath . '&current_product_id=' . $products['products_id'] ) . '&action=edit' . '"">' . xtc_image(DIR_WS_ICONS . 'icon_edit_attr.gif', BUTTON_EDIT_ATTRIBUTES,'', '', $icon_padding). '</a>';
                   }
                   if (function_exists('tags_iframe_link')) {
                     echo tags_iframe_link($products['products_id'], true);
                   } else {
                     echo '<a href=""'. xtc_href_link(FILENAME_PRODUCTS_TAGS, xtc_get_all_get_params(array('cPath', 'action', 'pID', 'cID')) . 'cpath=' . $cPath . '&current_product_id=' . $products['products_id'] ) . '&action=edit' . '"">' . xtc_image(DIR_WS_ICONS . 'icon_edit_tags.gif', TEXT_PRODUCTS_TAGS,'', '', $icon_padding). '</a>';
                   }
                   echo '<span style=""vertical-align: 3px;"">'.$products['products_name'].'</span>';
                   ?>
                 </td>
}}}

zu ersetzen durch:

{{{
#!php
<td class=""categories_view_data txta-l"" style=""padding-left: 8px;"">
                    <?php 
					// BEG BUTTON Auslagern
			   		foreach(auto_include(DIR_FS_ADMIN.'includes/extra/modules/categories_view/products_edit_button/','php') as $file) require ($file);
					// END BUTTON  Auslagern
                   echo '<br />'.$products['products_name'];
                   ?>
                 </td>
}}}

So kann man leichter ohne die categories_view.php zu ändern, weitere Buttons hinzufügen oder nicht benötigte auskommentieren.

Super wäre gleichfalls noch im oberen Bereich der Datei einen zusätzlichen Hook zur Verfügung zu stellen. Zeile 42 vor 
{{{
#!php
  //BOF - web28 -  2012-08-25 - change imagesize by css size
  define('BOX_CAT_IMAGE_SIZE', '150px');
}}}"	Neues Feature	new	normal	modified-shop-2.0.9.0	Admin	trunk					
