Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.
Afficher un lien d'une date à une autre

 
Post new topic   Reply to topic    Smarty Forum Index -> Language: French
View previous topic :: View next topic  
Author Message
tatane
Smarty n00b


Joined: 27 Jun 2013
Posts: 4

PostPosted: Fri Aug 23, 2013 12:48 pm    Post subject: Afficher un lien d'une date à une autre Reply with quote

Bonjour
J'utilise un CMS qui utilise smarty 2.6.26
Je vous grâce a smarty rendre des liens visible exemple du 1 Septembre au 25 Septembre.

Est-ce possible? Si oui,comment?

Merci
Back to top
View user's profile Send private message
bluejester
Smarty Regular


Joined: 26 Apr 2012
Posts: 55

PostPosted: Fri Sep 13, 2013 9:55 am    Post subject: Reply with quote

Hello,

Personnellement je fais comme ceci :

Code:
{if $smarty.now >= '2013-09-01 00:00:00'|date_format:'%s' && $smarty.now <= '2013-09-25 23:59:59'|date_format:'%s'}
    <a href="">lien</a>
{/if}
Back to top
View user's profile Send private message Visit poster's website
tatane
Smarty n00b


Joined: 27 Jun 2013
Posts: 4

PostPosted: Fri Sep 13, 2013 11:30 am    Post subject: Reply with quote

Nikel ca fonctionne Very Happy merci
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Language: French All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP