uweiss Posted February 7, 2014 Share Posted February 7, 2014 (edited) Hallo zusammen, habe das Modul im Einsatz und muss es anpassen. Die Höhe des Moduls auf der Startseite wird nicht automatisch angepasst, so dass der Abstand zum nächsten Mudul daunter zu groß ist. Mit dem Element-Inspektor bw. Firebug habe ich die Zeilen, die zu ändern sind, gefunden und kann das Modul temporär anpassen. Ich kann aber die Datei nicht lokalisieren, in der ich die Änderung permanent vornehmen muss. Hier der Code aus der zugehörigen css-datei: <!-- Module Featured Products by Category --><div id="featured-by-category_block_center_{$category_id}" class="featured-by-category_block_center block products_block clearfix"> <p class="title_block">Bücher - <a href="{l s=$category_link}" title="{l s=$category}">{l s=$category}</a></p> {if isset($products) AND $products} <div class="block_content"> {assign var='liHeight' value=250} {assign var='nbItemsPerLine' value=4} {assign var='nbLi' value=$products|@count} {math equation="nbLi/nbItemsPerLine" nbLi=$nbLi nbItemsPerLine=$nbItemsPerLine assign=nbLines} {math equation="nbLines*liHeight" nbLines=$nbLines|ceil liHeight=$liHeight assign=ulHeight} <ul style="height:{$ulHeight}px;"> {foreach from=$products item=product name=featuredByCategoryProducts} {math equation="(total%perLine)" total=$smarty.foreach.featuredByCategoryProducts.total perLine=$nbItemsPerLine assign=totModulo} {if $totModulo == 0}{assign var='totModulo' value=$nbItemsPerLine}{/if} <li class="ajax_block_product {if $smarty.foreach.featuredByCategoryProducts.first}first_item{elseif Es geht um die Zeile <ul style="height:{$ulHeight}px;"> Hat jemand einen Tipp, woher der parameter {$ulHeight} kommt? Danke für jeden Tipp. uweiss Edited February 7, 2014 by uweiss (see edit history) Link to comment Share on other sites More sharing options...
rumata Posted February 10, 2014 Share Posted February 10, 2014 Hallo, einfacher ist es, diesen Wert auszukommentieren, damit der Contaier immer eine automatische Höhe einnimmt. Oder zu schreiben <ul style="height:auto;"> Gruß Link to comment Share on other sites More sharing options...
Recommended Posts