Opened 6 months ago
Last modified 6 months ago
#1860 new Neues Feature
Neuer Hook: admin/includes/modules/categories_view.php
Reported by: | Karsta | Owned by: | somebody |
---|---|---|---|
Priority: | normal | Milestone: | modified-shop-2.0.7.0 |
Component: | Admin | Version: | trunk |
Description
Vorschlag für einen neuen Hookpoint zur Erweiterung der Produktbearbeitung aus der Produktübersicht im Adminbereich.
<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 . '¤t_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 . '¤t_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:
<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
//BOF - web28 - 2012-08-25 - change imagesize by css size define('BOX_CAT_IMAGE_SIZE', '150px');
Attachments (0)
Change History (1)
comment:1 Changed 6 months ago by Tomcraft
- Milestone set to modified-shop-2.0.6.0
- Version set to trunk
Note: See
TracTickets for help on using
tickets.