Hallo wieso wird übertall diese block eingeführt? Für was ist das? {block name="module_product_info_standard_sticky_box_overlays"} <div class="loading-overlay"></div> <div class="magnifier-overlay"></div> <div class="magnifier-target"> <div class="preloader"></div> </div> {/block} LG Stefan
Smarty Blöcke für gezoehlte updatesichere Änderungen am Template. Man kann diese Blöcke erweitern oder überschreiben ohne die originaldatei anfassen zu müssen. Wenn also ein Modul ne Ausgabe benötigt kann es einfach den Block erweitern wo es die Ausgabe im Template benötigt. Such nach Smarty Blöcke für mehr infos
Vielen Dank erstmal!!! Frage ich möchte die Indexdatei von honeygrid den Slide in den <div id="main" eintragen. mache ich dann eine neue Indexdatei unter auf: GXModules/Stefan/Index/Shop/Templates/Honeygrid/index.html in der index.html schreibe ich dann (pos1) nichts in den Block damit es dort verschindet und in pos2 setze ich dann den slider ein? pos1 {block name="index_outer_wrapper_imageslider"}{/block} pos2 {block name="index_inner_wrapper_main"} <div id="main"> <div class="main-inside"> {block name="index_inner_wrapper_main_breadcrumb"} {include file="get_usermod:{$tpl_path}snippets/navigation/breadcrumb.html" breadcrumb=$navtrail} {/block} {block name="index_inner_wrapper_main_banner"} {include file="get_usermod:{$tpl_path}snippets/banner.html" banner=$BANNER} {/block} {include file="get_usermod:{$tpl_path}snippets/slider.html" slider=$IMGSLIDER} {block name="index_inner_wrapper_main_content"}{$main_content}{/block} </div> </div> {/block}
Wenn ich Dich richtig verstanden habe, dann müsste in der Datei folgender Inhalt rein: HTML: {block name="index_outer_wrapper_imageslider"} {/block} block name="index_inner_wrapper_main_content" prepend} {include file="get_usermod:{$tpl_path}snippets/slider.html" slider=$IMGSLIDER} {/block} Mit dem ersten Blockeintrag machst Du den Originalblock leer. Mit dem zweiten Eintrag stellst Du vor dem Block den Slider ein.
Ich habe noch eine Frage ich möchte col-md-8 ändern auf col-md-6 muss ich den ganzen {block name="module_product_info_standard_images"} {/block} austauschen? {block name="module_product_info_standard_product_images_if"} {if $images} {block name="module_product_info_standard_images"} <div class="product-info-stage col-xs-12 col-md-8{if $images|count lt 2} centered{/if}"> {block name="module_product_info_standard_product_images_snippet_include"} {include file="get_usermod:{$tpl_path}snippets/product_info/images/product_images.html"} {/block} {block name="module_product_info_standard_product_images_manufacturer_ribbon_if"} {if $arr_ribbons.manufacturer|count > 0} {block name="module_product_info_standard_product_images_manufacturer_ribbon_include"} {include file="get_usermod:{$tpl_path}snippets/ribbon/ribbon_manufacturer.html" ribbon="manufacturer" id=$arr_ribbons.manufacturer.0.ID text=$arr_ribbons.manufacturer.0.IMAGE_ALT img=$arr_ribbons.manufacturer.0.IMAGE url=$arr_ribbons.manufacturer.0.URL } {/block} {/if} {/block} </div> {/block} {/if} {/block} wird die Datei Usermod eingestampft? LG Stefan
Im Prinzip wohl schon, es sei denn mann kann dort irgendwie mit "Replace" arbeiten, aber das weiss ich noch nicht so genau. Die USERMOD brauchst Du dann nicht mehr.
Du musst den Block austauschen, in dem deine Änderung liegt. Wenn der Subblöcke enthält diese bitte nicht entfernen. Vorläufig nicht. Da das neue Konzept aber deutliche Vorteile bietet, wird die Verwendung von Usermods vermutlich schnell zurückgehen, und wenn Usermods erkennbar irrelevant werden, dann ja. Das heisst ich schätze in einer Zukunft X ja, aber mal sehen wann.
noch eine Idee Frage kann ich selbst so einen block einfügen? oder wird dies nicht ausgeführt/ausgetauscht? LG Stefan
Entweder machst Du eine USERMOD und trägst Deine Änderung da rein, oder Du erstellst ein neues Verzeichnis unter GXModules. Das wäre z.B. GXModules/ Stefan/ Groesse/ Shop/ Templates/ Honeygrid/ Module/ Product_info/ standard.html mit dem Inhalt: HTML: {block name="module_product_info_standard_images"} <div class="product-info-stage col-xs-12 col-md-6{if $images|count lt 2} centered{/if}"> {block name="module_product_info_standard_product_images_snippet_include"} {include file="get_usermod:{$tpl_path}snippets/product_info/images/product_images.html"} {/block} {block name="module_product_info_standard_product_images_manufacturer_ribbon_if"} {if $arr_ribbons.manufacturer|count > 0} {block name="module_product_info_standard_product_images_manufacturer_ribbon_include"} {include file="get_usermod:{$tpl_path}snippets/ribbon/ribbon_manufacturer.html" ribbon="manufacturer" id=$arr_ribbons.manufacturer.0.ID text=$arr_ribbons.manufacturer.0.IMAGE_ALT img=$arr_ribbons.manufacturer.0.IMAGE url=$arr_ribbons.manufacturer.0.URL } {/block} {/if} {/block} </div> {/block} Was genau hast du vor?