View Single Post
  #12  
Old 08-31-2010, 05:27 AM
williamdswanepoel williamdswanepoel is offline
Mosets'd
 
Join Date: Aug 2010
Posts: 28
Default Progress but not finished yet!

I have changed the code to insert the HP core "type" field as follows:

Code:
<?php echo MosetsHTML::_('link', 2, MosetsHTML::_('link', JRoute::_(MosetsRoute::getLink('hotproperty', array('view' => 'types', 'layout' => 'properties', 'id' => $this->row->Agent->id))), $this->escape($this->row->Agent->name)), $this->row->Agent->name); ?>
This does show a link on my page and when I click on the link it goes to the correct place, but the links name is incorrect. Currently it shows an "agents" name as the link and not the "type" name.

I changed the code as follows but then the link totally disapears:

Code:
<?php echo MosetsHTML::_('link', 2, MosetsHTML::_('link', JRoute::_(MosetsRoute::getLink('hotproperty', array('view' => 'types', 'layout' => 'properties', 'id' => $this->row->type->id))), $this->escape($this->row->type->name)), $this->row->type->name); ?>
Can somebody please help and give a suggestion of what is wrong.
Thanks