OS Property support center

Removing the view option and map

  • Daniel Fernandes
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 3 months ago #40505 by Daniel Fernandes
Removing the view option and map was created by Daniel Fernandes
Hi,

I am using the default theme, and i would like to remove from the top the all 3 options the view option and the map view and google earth

Is this possible.

Thank you
Attachments:

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

More
11 years 3 months ago #40507 by Mr. Dam
Replied by Mr. Dam on topic Re: Removing the view option and map
Hi,
Yes, it's posible, to remove the bar, please follow these steps.
1. Open file
components > com_osproperty > templates > default > listing.html.tpl.php
2. find
<a href="javascript:updateView(3)" title="<?php echo JText::_('OS_CHANGE_TO_GRID_VIEW');?>">
<img src="<?php echo JURI::root()?>components/com_osproperty/images/assets/gridview.png" style="border:1px solid #CCC !important;padding:1px;" />
</a>
<a href="javascript:updateView(2)" title="<?php echo JText::_('OS_CHANGE_TO_MAP_VIEW');?>">
<img src="<?php echo JURI::root()?>components/com_osproperty/images/assets/mapview.png" style="border:1px solid #CCC !important;padding:1px;" />
</a>
<?php
if($configClass == 1){
?>
<a href="javascript:updateView(4)" title="<?php echo JText::_('OS_CHANGE_TO_GOOGLE_EARTH_KML');?>">
<img src="<?php echo JURI::root()?>components/com_osproperty/images/assets/kml.png" style="border:1px solid #CCC !important;padding:1px;" />
</a>
<?php
}
?>
<input type="hidden" name="listviewtype" id="listviewtype" value="<?php echo JRequest::getVar('listviewtype',$_COOKIE); ?>"/>

and remove it
Good luck
Dam
The following user(s) said Thank You: nadinekirma

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

  • Daniel Fernandes
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 3 months ago #40512 by Daniel Fernandes
Replied by Daniel Fernandes on topic Re: Removing the view option and map
Thank you, very much, for the quick answer :laugh:

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

More
10 years 8 months ago #48621 by nadinekirma
Replied by nadinekirma on topic Re: Removing the view option and map
Today I needed this very solution and it worked perfectly. Thanks!

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

More
10 years 8 months ago #48665 by Mr. Dam
Replied by Mr. Dam on topic Re: Removing the view option and map
You are welcome
Dam

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

Moderators: Mr. DamNguyen Phu Quan