View Single Post
  #16  
Old 09-06-2010, 08:10 PM
williamdswanepoel williamdswanepoel is offline
Mosets'd
 
Join Date: Aug 2010
Posts: 28
Default In more detail?

Hi gray

Thanks for the help, but I am not a expert with PHP. Can you maybe help me a bit more...
You can view my site at: http://square-sites.com/greensquare9...id=2&Itemid=57

I have taken some of the extra fields and hard coded them into my property.php as explained above. All hard coded fields are above the picture on my site.
I don't want those fields to be repeated in the extrafields section below the picture so I need to modify the following code:
Code:
<?php foreach ($this->extrafields as $extrafield) : ?>
        <?php
        $extrafield_value = MosetsHTML::_('hotproperty.content.extrafield', $extrafield, $this->row);
        if (!empty($extrafield_value)) : ?>
            <?php if (!$extrafield->hideCaption && !empty($extrafield->caption)) : ?>
                <dt class="caption <?php echo $extrafield->name; ?>"><?php echo $this->escape($extrafield->iscore ? JText::_($extrafield->caption) : $extrafield->caption); ?></dt>
            <?php endif; ?>
            <dd class="value <?php echo $extrafield->name; ?>"><?php echo $extrafield_value; ?></dd>
        <?php endif; ?>
    <?php endforeach; ?>
So that I only call the fields I would like to. Please let me know how I can use your suggestion with this code to only include certain fields.

Thank You.