In v4.6 we introduced functionality whereby property details tabs are added via minicomponents. This allows us and third party developers to programatically add and remove tabs. Since then we've switched to using a mostly flat template in the Property Details page, however there is some output that's intentionally been retained as tabbed output because of the great amount of screen real-estate it can use up. If you're not using the flat template, or you want to modify the tab order then this guide will be of interest to you.
We will start with the hypothetical scenario that you want to show the slideshows tab first, instead of the property details text. First you need to create a new directory within your /jomres/remote_plugins/ directory tree called "custom_code", so that you now have /jomres/remote_plugins/custom_code.
Now, copy /jomres/core-minicomponents/j00035tabcontent_03_slideshow.class.php to this directory and rename the file to j00035tabcontent_01_a_slideshow.class.php. Inside the file, also rename the class and constructor as follows:
class j00035tabcontent_01_a_slideshow
{
function j00035tabcontent_01_a_slideshow($componentArgs)
{
// Snipped for brevity
}
}
Leave all of the other code in place.
Again, copy j00035tabcontent_03_slideshow.class.php into this directory and edit it so that it doesn't produce any output.
function j00035tabcontent_03_slideshow($componentArgs)
{
$MiniComponents =jomres_getSingleton('mcHandler');
if ($MiniComponents->template_touch)
{
$this->template_touchable=false; return;
}
}
Finally, in the administrator area of Jomres, use the Rebuild Registry feature. Once you've done that, Jomres should use these new files instead of the old j00035tabcontent_03_slideshow.class.php that should still be in the /jomres/core-minicomponents directory.