However, I'm having trouble with their styling.
In the templates/mytemplate/html/com_content/article/default.php I have included the fields using this code:
Code: Select all
<span class="eventinfo"> <?php echo $this->escape($this->article->eventdate); ?> | <?php echo $this->escape($this->article->eventtime); ?> | <?php echo $this->escape($this->article->eventlocation); ?> </span>
However, if nothing is entered into those fields (and they are not mandatory) the problem is that the span class and the dividers still get generated and it looks like this:
So what I would need is some way to make the span tag and the dividers only load IF any of the fields have been filled out.
How do I do this? It MUST be possible.