Toggle navigation
Email or Username
Password
Remember
Login
Register
|
I forgot my password
Questions
Unanswered
Tags
Users
Ask a Question
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.
cms
php
smarty
asked
Mar 24, 2019
by
butteff
|
24
views
answer
comment
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
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
\r
foreach
\r
if
answered
Mar 27, 2019
by
xaker1
ask related question
comment
Please
log in
or
register
to add a comment.
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?
answered
Mar 27, 2019
by
xaker1
ask related question
comment
Please
log in
or
register
to add a comment.
Related questions
0
like
0
dislike
1
answer
How to draw the layout of the smarty template engine?
asked
Apr 20, 2019
by
justcrone
cms
html
smarty
0
like
0
dislike
1
answer
As Ajax Smarty fetch to fix it?
asked
Apr 12, 2019
by
zetwin
ajax
php
smarty
0
like
0
dislike
1
answer
Please help with smarty
asked
Mar 28, 2019
by
Zante
php
smarty
0
like
0
dislike
2
answers
Russification in templates Smarty, gettext
asked
Mar 28, 2019
by
sht0rm13
php
smarty
gettext
0
like
0
dislike
7
answers
Smarty vs Twig
asked
Mar 22, 2019
by
zt50
php
smarty
twig
Most popular tags
javascript
php
css
html
jquery
wordpress
python
linux
web-development
mysql
android
windows
java
layout
c#
computer-networks
node.js
cpp
iron
yii
vue.js
1C-Bitrix
react
laravel
django
nginx
system-administration
search-engine-optimization
api
ubuntu
the-it-education.
ajax
sql
programming
hosting
cms
design
apache
google-chrome
bootstrap
Vkontakte
macos
google
network-administration
git
laptops
algorithms
regular-expressions
unity-game-engine
email
angular
database
network-equipment
software
wooŃommerce
debian
.net
ios
information-security
video
law-in-it
browsers
books
parsing
wi-fi
game-development
career
htaccess
postgresql
telegram
mikrotik
mobile-development
ruby-on-rails
the-domain-name-system
modx
Yandex
c
json
opencart
Habr
freelance
vpn
asp.net
windows-server
symfony
bots
hard-drives
math
qt
DIY
audio
frontend
payment-system
bash
electronics
gulp.js
user-interface
docker
online-shopping
110,608
questions
257,186
answers
0
comments
32,810
users