Hello!
I was looking for hours to find a solution without success. I hope you can help me.
I have created some extra fields and I'm able do display them in item.php with the following code:
After <!-- Plugins: AfterDisplayTitle --> I pasted this code
I was looking for hours to find a solution without success. I hope you can help me.
I have created some extra fields and I'm able do display them in item.php with the following code:
After <!-- Plugins: AfterDisplayTitle --> I pasted this code
If the extra field is empty it is not dispayed. So far every thing is ok.
But in my case I need something more.
I have some extra code conected to <?php echo $extrafields; ?>
<div class="xyz"><?php echo $extrafields; ?></div>
or
<p><?php echo $extrafields; ?></p>
How can I hide the code like <div></div>, <p></p>, {slider=xxx}...{/slider} et cetera ... if the extra field is empty?
if $extraField is empty display '' ... els <div class="xyz"> <?php echo $extrafields; ?> </div> .. endif
Thank you!