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

From JReviews Documentation
Jump to: navigation, search
(Created page with 'If you selected the <span style="color: blue">geomaps</span> theme in JReviews Configuration, the theme files with the map code will be used on all …')
 
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
If you selected the <span style="color: blue">geomaps</span> theme in [[Configuration-General tab|JReviews Configuration]], the theme files with the map code will be used on all your sections and categories.
+
Each listing type in JReviews has settings to hide the map from all categories that use that listing type:
  
  
To hide the map from certain sections or categories, use the [[Theme Manager]] and add a "_nomap" theme suffix to those sections/categories.
+
[[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:
  
Then you will be able to use different theme files (without the map) for those categories:
+
*\com_jreviews\jreviews\views\themes\default\listings\detail.thtml
 +
*\com_jreviews\jreviews\views\themes\default\listings\listings_blogview.thtml
  
detail_nomap.thtml - listing detail page <br />
+
First create copies of those files and rename them to this:
listings_blogview_nomap.thtml - category list page
+
  
 +
*detail_nomap.thtml - listing detail page
 +
*listings_blogview_nomap.thtml - category list page
  
The easiest way to do that is to copy and rename these two files:
+
Then delete the code for maps in those files and clear the '''File Registry''' in JReviews configuration.
  
\com_jreviews\jreviews\views\themes\default_02\listings\detail.thtml<br />
+
To hide the map from specific categories, use the [[Category Layout Manager]] and add a "_nomap" theme suffix to those categories.
\com_jreviews\jreviews\views\themes\default_02\listings\listings_blogview.thtml
+
 
+
 
+
The <span style="color: blue">default_02</span> theme is the same as <span style="color: blue">geomaps</span> theme, but without the map code.
+
 
+
 
+
After you rename the files to:
+
 
+
detail_nomap.thtml<br />
+
listings_blogview_nomap.thtml
+
 
+
move them into this folder:
+
 
+
\com_jreviews_addons\geomaps\views\themes\geomaps\listings
+
 
+
 
+
Click on '''Clear File Registry''' link in JReviews administration and that is it.
+
  
  

Latest revision as of 18:53, 28 June 2019

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 Category Layout Manager and add a "_nomap" theme suffix to those categories.