Jump to content

bloc nouveaux produits avec titre


Recommended Posts

Bonjour a tous,

 

Je souhaite afficher les noms de produits sous la vignette(bloc nouveaux produits) comme dans le bloc "déjà vus". j'ai deja reussi a enlever tout le tete au dessous mais j'arrive pas a mettre les noms des produits...

 

<!-- MODULE Block new products -->
<div id="new-products_block_right" class="block products_block">
	<h4><a href="{$base_dir}new-products.php" title="{l s='New products' mod='blocknewproducts_mp'}">{l s='New products' mod='blocknewproducts_mp'}</a></h4>
	<div class="block_content">
	{if $new_products|@count > 0}
		<ul class="product_images">
			<li><a href="{$new_products.0.link}" title="{$new_products.0.legend|escape:htmlall:'UTF-8'}"><img src="{$link->getImageLink($new_products.0.link_rewrite, $new_products.0.id_image, 'medium_default')}" alt="{$new_products.0.legend|escape:htmlall:'UTF-8'}" /></a></li>
			{if $new_products|@count > 1}<li><a href="{$new_products.1.link}" title="{$new_products.1.legend|escape:htmlall:'UTF-8'}"><img src="{$link->getImageLink($new_products.1.link_rewrite, $new_products.1.id_image, 'medium_default')}" height="{$mediumSize.height}" width="{$mediumSize.width}" alt="{$new_products.1.legend|escape:htmlall:'UTF-8'}" /></a></li>{/if}
		</ul>
		<div class="text_desc">
						<h5 class="s_title_block"><a href="{$new_products->product_link|escape:'html'}" title="{l s='About' mod='blocknewproducts_mp'} {$new_products->name|escape:html:'UTF-8'}">{$new_products->name|escape:html:'UTF-8'}</a></h5>
						
					</div>
		</dl>
		<p><a href="{$base_dir}new-products.php" title="{l s='All new products' mod='blocknewproducts_mp'}" class="button_large">{l s='All new products' mod='blocknewproducts_mp'}</a></p>
	{else}
		<p>{l s='No new product at this time' mod='blocknewproducts_mp'}</p>
	{/if}
	</div>
</div>
<!-- /MODULE Block new products -->

 

Link to comment
Share on other sites

Pour la v 1.6, la ligne complète d'origine qui permet de mettre le nom du produit dans bloc nouveaux produits avec le lien est :

<a class="product-name" href="{$newproduct.link|escape:'html'}" title="{$newproduct.name|escape:html:'UTF-8'}">{$newproduct.name|strip_tags|escape:html:'UTF-8'}</a>
Link to comment
Share on other sites

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...