Question on smarty and cms made simple (but rather, simply by Smarty)

0 like 0 dislike
24 views
Is there a template that I derive information about the age of:

Age: {$entry->fields.age->value}

And there is a module with the products that this info displays for each product.
to start it is necessary to register on the page {Products}

Let's say I want to display all products with the age of 25.

How to specify this in the template so that writing on the page {Products age="25"} I could bring up?

I hope explained clear.
I hope for Your help.
by | 24 views

2 Answers

0 like 0 dislike
{foreach from=$Products item=entry}{if $entry->fields.age->value>25}
\r
{/if}{/foreach}
\r
A little understood the structure of the array, but I hope the message was understood.
\r
\rforeach
\rif
by
0 like 0 dislike
Itself asked, itself answered.
Could be done with cms made simple
\r
{Products action="fieldlist" field="age", fieldval="25"}
\r
But I wonder still how it would be possible to get by means smarti?
by

Related questions

0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
asked Apr 12, 2019 by zetwin
0 like 0 dislike
1 answer
asked Mar 28, 2019 by Zante
0 like 0 dislike
2 answers
0 like 0 dislike
7 answers
asked Mar 22, 2019 by zt50
110,608 questions
257,186 answers
0 comments
32,810 users