Custom Template dont show label

As I am customizing all the views, A thought..
Taking the form tmpl. custom_example and making it my custom detail view, I want labels sometimes and not other times.. I did not see a setting on the element or form or group to turn off the labels for the front-end detail view, so you could make a different template for the no-lables elements, however, it would be nice to be able to just pass a param like FALSE in the loadTemplate function that follows..

PHP:
<?php $this->element = $this->elements['Title'];  echo $this->loadTemplate('element', FALSE);?>

Or is this already capable, and I just need to find it? I suppose I could add an additional value to the array or maybe just delete the label from the array before sending?
 
If you leave the element label blank in the admin then I'm pretty sure its not shown.
You can't pass in additional parameters into Joomla's loadTemplate method. I would think the best way would be to load two separate templates if you want to change the way an element is rendered be that the element label or other options.
 
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top