rajeshproreal
New Member
Hi
I have a list where the data is entered only by the admin. In some rows, some elements have no value.
I want all the elements to be visible in the 'edit' view so that I can fill in the required elements.
In the 'details' view (for the public), I want to hide the elements that have no value.
I added the following condition to default_group.php:
<?php if ($element->value) { ?>
.......
.......
<?php }?>
This does hide the empty elements in details view, but it also hides them in edit view.
Is there a way to make them hide only in details view?
Alternately, how can I add a condition to show the empty elements only to 'special' users.
Thanks
Rajesh
I have a list where the data is entered only by the admin. In some rows, some elements have no value.
I want all the elements to be visible in the 'edit' view so that I can fill in the required elements.
In the 'details' view (for the public), I want to hide the elements that have no value.
I added the following condition to default_group.php:
<?php if ($element->value) { ?>
.......
.......
<?php }?>
This does hide the empty elements in details view, but it also hides them in edit view.
Is there a way to make them hide only in details view?
Alternately, how can I add a condition to show the empty elements only to 'special' users.
Thanks
Rajesh