Jump to content

include file ne fonctionne pas


Recommended Posts

Bonjour à tous,

 

Je tente d'ajouter un lien sur la page category.php selon le id_category mais lorsque j'inclus mon fichier avec {include file="$tpl_dir./cv.tpl"}, le code ne fonctionne pas.. Ma condition dansla page ne récupère pas le $active de mon fichier tpl.... Quelqu'un a une idée ?

 

{if isset($category)}

{if $category->id AND $category->active}

<h1>{strip}

{$category->name|escape:'htmlall':'UTF-8'}

<span>

{if $category->id == 1 OR $nb_products == 0}{l s='There are no products.'}

{else}

{if $nb_products == 1}{l s='There is'}{else}{l s='There are'}{/if}

{$nb_products}

{if $nb_products == 1}{l s='product.'}{else}{l s='products. ' }{/if}

{if $active == 1}{l s='Voir le CV'}{else}{l s='Aucun CV pour l'instant. ' }{/if}

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