Jump to content

Modification d'un tpl


Recommended Posts

Bonjour,

Quelqu'un pourrait-il m'aider à modifier ce tpl, pour que la catégorie dont l'id est 12 ne s'affiche pas dans la liste ?

 

<div class="breadcrumb">
<a title="{l s='Back home' mod='prestapress'}" href="{$base_dir_ssl}">{l s='Home' mod='prestapress'}</a>
<span class="navigation-pipe">></span>
<span class="navigation_end">
<a title="{l s='All articles' mod='prestapress'}" href="{$listLink}">{l s='Articles' mod='prestapress'}</a></span>
{if isset($press_category_id)}> {l s='Category' mod='prestapress'} "{$press_category_name}" {/if}
</div>
<h2>{l s='Articles' mod='prestapress'} {if isset($press_category_id)} "{$press_category_name}" {/if}</h2>
<div id="publication_list">
{if $press_list|@count > 0 && $press_list}
<ul>
{foreach from=$press_list item=publication name=publications}
<li>
{if $publication.default_img}
<div class="img_default">
<a href="{$publication.link}" title="{$publication.title}">
<img src="{$base_dir_ssl}{$press_conf.img_save_path}timthumb.php?src={$img_path}{$publication.id_press_publication}/{$publication.default_img}.{$publication.default_img_type}&w={$press_conf.img_list_width}" alt="{$publication.title}" />
</a>
</div>
{/if}
<div class="{if $publication.default_img} detail_left {else} detail_large {/if}">
	<h3><a href="{$publication.link}" title="{$publication.title}">{$publication.title}</a></h3>
	{if $press_conf.list_display_date}<span>{dateFormat date=$publication.date_on|escape:'html':'UTF-8' full=0}</span>{/if}
	<div class="excerpt">{$publication.excerpt}</div>

   {if $press_conf.category_active && isset($publication.categories) && $publication.categories|@count > 0}
	<span>{l s='Posted on' mod='prestapress'}
		  {foreach from=$publication.categories item=press_category name=press_category_list}
			   <a href="{$press_category.link}" title="{$press_category.name}">{$press_category.name}</a>{if !$smarty.foreach.press_category_list.last},{/if}
		   {/foreach}  
	</span>
	{/if}

</div>
<div class="clear"></div>
</li>
{/foreach}
</ul>
{if $back}<a class="button_large" href="{if isset($press_category_id)} {$categoryLink}{$backPagination} {else} {$listLink}{$backPagination} {/if}">{l s='Previous articles' mod='prestapress'}</a>{/if}
{if $next}<a class="button_large" href="{if isset($press_category_id)} {$categoryLink}{$nextPagination} {else} {$listLink}{$nextPagination} {/if}"> {l s='Newest Articles' mod='prestapress'}</a>{/if}
<div class="clear"></div>
{else}
{l s='There is no articles in this category' mod='prestapress'}
{/if}
</div>

Merci d'avance

Link to comment
Share on other sites

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...