eZ Community » Forums » Developer » Multi def

Multi def

Multi def

Tuesday 13 December 2016 1:04:47 am - 1 reply

Hello.. I need your help.

I have a landing page with temporaly offers:

for example www.riminihotels.it/offerte-giugno-rimini

In this landing I'll show only offers for june using that code

{case match="130"}{def $from=strtotime("1 june"blunk.gif Emoticon $to=strtotime("30 june"blunk.gif Emoticon}{/case}

But it shows only june offers for this years.

I want to show offers of june for 2014,2015,2016, 2017,2018,2019,...

can you help me

ez Community Project 2011.12

Tuesday 14 March 2017 7:35:15 am

Hello nicola,

Welcome to the eZ Community!

Could you post your full template code as a gist for proper references and refactoring to be made?

I'd imagine this would be a trivial problem to rewrite the eztpl code to generate the same for a wider range of years (5 years, 10 years, etc). eZ's Template Language is smarty friendly and php like extensible. Meaning you can write virtually anything withinside it. And if you can't write it in eztpl you can absolutely write php template operators or functions to connect the template code to custom php code.

Consult the doc.ez.no/eZ-Publish documentation for more information about available template code operators and syntax.

I hope this helps!



You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from