Difference between revisions of "How to hide the map from certain categories"

From JReviews Documentation
Jump to: navigation, search
Line 1: Line 1:
You've successfully added GeoMaps to your site, but you also have certain categories, like news and blogs and others that don't require showing maps.
+
Each listing type in JReviews has settings to hide the map from all categories that use that listing type:
  
The easiest solution is to edit the listing type of those categories and disable displaying the map on their list and detail pages.
 
  
 +
[[File:gm-listingtype.png]]
 +
 +
If you want to hide the map from specific categories regardless of the listing type, you can customize the theme files to remove the map code:
  
Alternative is to create a copy of these two theme files
 
 
*\com_jreviews\jreviews\views\themes\default\listings\detail.thtml
 
*\com_jreviews\jreviews\views\themes\default\listings\detail.thtml
 
*\com_jreviews\jreviews\views\themes\default\listings\listings_blogview.thtml
 
*\com_jreviews\jreviews\views\themes\default\listings\listings_blogview.thtml
  
rename the copies to this:
+
First create copies of those files and rename them to this:
 +
 
 +
 
 
*detail_nomap.thtml - listing detail page
 
*detail_nomap.thtml - listing detail page
 
*listings_blogview_nomap.thtml - category list page
 
*listings_blogview_nomap.thtml - category list page
and delete the code for maps in those files.
 
 
Click on '''Clear File Registry''' link in JReviews administration for JReviews to recogniz new files.
 
  
 +
Then delete the code for maps in those files and clear the '''File Registry''' in JReviews configuration.
  
To hide the map from certain categories, use the [[Theme Manager]] and add a "_nomap" theme suffix to those categories.
+
To hide the map from specific categories, use the [[Theme Manager]] and add a "_nomap" theme suffix to those categories.
  
  

Revision as of 10:05, 15 December 2013

Each listing type in JReviews has settings to hide the map from all categories that use that listing type:


Gm-listingtype.png

If you want to hide the map from specific categories regardless of the listing type, you can customize the theme files to remove the map code:

  • \com_jreviews\jreviews\views\themes\default\listings\detail.thtml
  • \com_jreviews\jreviews\views\themes\default\listings\listings_blogview.thtml

First create copies of those files and rename them to this:


  • detail_nomap.thtml - listing detail page
  • listings_blogview_nomap.thtml - category list page

Then delete the code for maps in those files and clear the File Registry in JReviews configuration.

To hide the map from specific categories, use the Theme Manager and add a "_nomap" theme suffix to those categories.