2012-01-30, 09:26:10
shawn_a Wrote:mikeh Wrote:In version 1.3 I have made it possible to choose a category for custom fields. The custom fields that have a category are only shown on that specific page in the edit/add page area.
However, I am unsure of the best way to handle this for the results and details pages.
Any suggestions?
Perhaps use wrappers so entire sections or labels are omitted if the field is non existent in that category.
essentially
Code:<?php if( existsincategory('fieldname') ) { ?>
<span>Label: <span> <?php echo $fieldvalue ?> </span></span>
<?php } ?>
But maybe a bit more elegant.
Something like that would work, I would not want to over complicate things though.