v3.9.x Doppelt vorhandene smarty blöcke verhindern überschreiben

Dieses Thema im Forum "Bugs v3.9.x" wurde erstellt von Joschka, 3. Juni 2018.

  1. Joschka

    Joschka Erfahrener Benutzer

    Hallo zusammen,

    meinem Verständnis nach müssen Smarty {block}-Anweisungen einen eindeutigen name haben innerhalb einer Datei, ansonsten können sie nicht zuverlässig überschrieben werden. Mir ist das in der product.html aufgefallen bei dem block snippets_product_listing_product_description_shipping, den ich nicht erfolgreich überschreiben konnte, da mein überschreibender Block zweimal eingesetzt wurde, obwohl da unterschiedliche Inhalte zu sehen sein sollten.

    Habe mal per Kommandozeile im Downloadarchiv GX3_v3.9.3.1 gesucht und dabei folgende Duplikate gefunden:

    Im Honeygrid-Verzeichnis (templates/Honeygrid):
    Code:
    ./templates/Honeygrid/module/create_account_guest.html:"module_create_account_guest_address_country_error"
    ./templates/Honeygrid/module/create_account_guest.html:"module_create_account_guest_address_country_error"
    ./templates/Honeygrid/module/create_account_guest.html:"module_create_account_telephone_fax_if"
    ./templates/Honeygrid/module/create_account_guest.html:"module_create_account_telephone_fax_if"
    ./templates/Honeygrid/module/product_info/standard.html:"module_product_info_standard_sticky_box_min_order"
    ./templates/Honeygrid/module/product_info/standard.html:"module_product_info_standard_sticky_box_min_order"
    ./templates/Honeygrid/module/product_info/standard.html:"module_product_info_standard_sticky_box_rating"
    ./templates/Honeygrid/module/product_info/standard.html:"module_product_info_standard_sticky_box_rating"
    ./templates/Honeygrid/module/product_options/product_options_selection.html:"module_product_options_selection_option_label"
    ./templates/Honeygrid/module/product_options/product_options_selection.html:"module_product_options_selection_option_label"
    ./templates/Honeygrid/snippets/order/order_item.html:"snippets_order_item_quantity_unit_if"
    ./templates/Honeygrid/snippets/order/order_item.html:"snippets_order_item_quantity_unit_if"
    ./templates/Honeygrid/snippets/product_listing/product.html:"snippets_product_listing_product_description_shipping"
    ./templates/Honeygrid/snippets/product_listing/product.html:"snippets_product_listing_product_description_shipping"
    ./templates/Honeygrid/snippets/product_listing/product.html:"snippets_product_listing_product_description_shipping_name_if"
    ./templates/Honeygrid/snippets/product_listing/product.html:"snippets_product_listing_product_description_shipping_name_if"
    ./templates/Honeygrid/snippets/product_listing/product.html:"snippets_product_listing_product_description_shipping_name_time_image"
    ./templates/Honeygrid/snippets/product_listing/product.html:"snippets_product_listing_product_description_shipping_name_time_image"
    ./templates/Honeygrid/snippets/product_listing/product.html:"snippets_product_listing_product_description_shipping_name_time_image_if"
    ./templates/Honeygrid/snippets/product_listing/product.html:"snippets_product_listing_product_description_shipping_name_time_image_if"
    ./templates/Honeygrid/snippets/product_listing/product.html:"snippets_product_listing_product_description_shipping_name_time_image_no_range"
    ./templates/Honeygrid/snippets/product_listing/product.html:"snippets_product_listing_product_description_shipping_name_time_image_no_range"
    ./templates/Honeygrid/snippets/product_listing/product.html:"snippets_product_listing_product_description_shipping_name_time_image_range"
    ./templates/Honeygrid/snippets/product_listing/product.html:"snippets_product_listing_product_description_shipping_name_time_image_range"
    
    Im Admin-Bereich:
    Code:
    ./admin/html/content/content_manager/partial/product_content_form.html:"admin_content_manager_partial_product_content_form_tabs_item_title_file"
    ./admin/html/content/content_manager/partial/product_content_form.html:"admin_content_manager_partial_product_content_form_tabs_item_title_file"
    ./admin/html/content/content_manager/partial/product_content_form.html:"admin_content_manager_partial_product_content_form_tabs_item_title_file"
    ./admin/html/content/content_manager/partial/product_content_form.html:"admin_content_manager_partial_product_content_form_tabs_item_title_file"
    ./admin/html/content/module_center/itrk_configuration.html:"admin_module_center_itrl_configuration_title"
    ./admin/html/content/module_center/itrk_configuration.html:"admin_module_center_itrl_configuration_title"
    ./admin/html/content/module_center/shipcloud_configuration.html:"admin_module_center_shipcloud_configuration_form_miscellaneous_settings_declared_value_min"
    ./admin/html/content/module_center/shipcloud_configuration.html:"admin_module_center_shipcloud_configuration_form_miscellaneous_settings_declared_value_min"
    ./admin/html/content/static_seo_urls/index/modals/delete.html:"admin_static_seo_urls_index_modals_delete"
    ./admin/html/content/static_seo_urls/index/modals/delete.html:"admin_static_seo_urls_index_modals_delete"
    Ich nehme mal an, dass ein paar von denen so wie sie aktuell eingebaut sind in Ordnung gehen, da if Anweisungen oder Ähnliches dafür sorgen, dass nur einer der doppelt bis mehrfach vorhandenen Blöcke angezeigt werden können. Das habe ich in meiner Auflistung oben nicht berücksichtig.

    Hoffe, dass mein Verständnis richtig ist und dass euch das hilft

    Liebe Grüße
    Simon
    (Admin von filzfaktor.at)
     
  2. Wilken (Gambio)

    Wilken (Gambio) Erfahrener Benutzer

    Das ist richtig.

    Ich hab noch nicht reingeschaut, aber das checken wir kommende Woche.
     
  3. Mirko (Gambio)

    Mirko (Gambio) Administrator Mitarbeiter