Hi
I made a custom detail view and call every element in the template like this:
Is it possible to show a group of elements based on conditions?
Maybe something like that:
Any help is greatly appreciated.
Stefan
I made a custom detail view and call every element in the template like this:
PHP:
<?php $this->element = $this->elements['preis']; echo $this->loadTemplate('element'); ?>
Is it possible to show a group of elements based on conditions?
Maybe something like that:
PHP:
<?php if ($this->element = $this->elements['preis'] > '0') : ?>
<?php $this->element = $this->elements['preis']; echo $this->loadTemplate('element'); ?>
<?php $this->element = $this->elements['waehrung']; echo $this->loadTemplate('element'); ?>
<?php else;?>
something else
<?php endif;?>
Any help is greatly appreciated.
Stefan