How to hide the map from certain categories

From JReviews Documentation
Revision as of 11:05, 17 June 2011 by Jreviews (Talk | contribs)

Jump to: navigation, search

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.

The easiest solution is to edit the listing type of those categories and disable displaying the map on their list and detail pages.


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\listings_blogview.thtml

rename the copies to this:

  • detail_nomap.thtml - listing detail 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.


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