The Thinkery

Not finding what you're looking for? Don't hesitate to contact us!

Before Posting...

Before posting questions in the forums, please be sure to read the FAQs by clicking on the FAQs link in the sidebar product menu. You must be logged in and have a valid subscription to access the SUPPORT FORUMS.
×
Support Policy Notice

As outlined in our Rules section (though never closely followed by our staff!), effective immediately we will no longer be taking time to provide customizations of our products.

Suggested addition to IpropertyHelperRoute::getAgentPropertyRoute

  • bianchijc
  • bianchijc's Avatar Topic Author
  • Offline
  • Ponderer
  • Ponderer
More
9 years 6 months ago #35375 by bianchijc
bianchijc created the topic: Suggested addition to IpropertyHelperRoute::getAgentPropertyRoute
The suggestion is to add the companyagents view to the needles in the getAgentPropertyRoute. The reason is that if you have a menu item for All Properties but not for each agent, the All Properties page becomes the ItemId for the agentproperties view unless you create a menu item for each agent also. When you're hiding the IP Titles and using Page Titles, this isn't ideal. When IProperty is used by an individual Real Estate office they're likely to have a page that shows all their agents (companyagents) but don't want to show all other agents in the MLS, so they're not likely to have an 'agents' view. The agentproperties view with the profile details makes a nice agent page.
    //agent properties
    public static function getAgentPropertyRoute($agentid)
	{
            // Get agent company id 
            $app = JFactory::getApplication();
            $agent = IpropertyHTML::buildAgent($agentid);
            $co_id = $agent ? $agent->companyid : 0;
 
            $needles = array(
            'agentproperties' =>  array((int)$agentid),
            'companyagents' =>  array((int)$co_id),  // new needle added
            'agents' =>  array(),
            'home' =>  array(),
            'allproperties' =>  array()
        );
...

Please Log in or Create an account to join the conversation.

More
9 years 6 months ago #35377 by vinny
vinny replied the topic: Suggested addition to IpropertyHelperRoute::getAgentPropertyRoute
Hi - thanks for the request! We've added this for our next release.

Vinny - The Thinkery
Good reviews on the JED make us work harder :) | IProperty | Work Force | Report Card

Please Log in or Create an account to join the conversation.

Time to create page: 0.390 seconds