Jump to content
@rthur

Condition si la page actuelle est la home page

Recommended Posts

Bonjour,

J'aurais besoin de faire afficher dans le footer un élément, mais uniquement sur la home page. Sachant que le footer se répète partout je cherche à insérer une condition mais je ne sais pas vraiment quoi mettre. Auriez-vous une idée?

Merci

Share this post


Link to post
Share on other sites

{if $page_name == "index"} .... {/if}

Share this post


Link to post
Share on other sites
52 minutes ago, Eolia said:

{if $page_name == "index"} .... {/if}

super merci

Share this post


Link to post
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...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More