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

Thema wurde von Joschka, 3. Juni 2018 erstellt.

  1. Joschka

    Joschka Erfahrener Benutzer

    Registriert seit:
    27. Februar 2012
    Beiträge:
    771
    Danke erhalten:
    114
    Danke vergeben:
    218
    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

    Registriert seit:
    7. November 2012
    Beiträge:
    18.737
    Danke erhalten:
    7.309
    Danke vergeben:
    2.208
    Das ist richtig.

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

    Mirko (Gambio) Administrator
    Mitarbeiter

    Registriert seit:
    27. März 2017
    Beiträge:
    41
    Danke erhalten:
    22
    Danke vergeben:
    5