How to hide the map from certain categories

From JReviews Documentation
Revision as of 22:53, 2 March 2010 by Jreviews (Talk | contribs) (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 …')

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

If you selected the geomaps theme in JReviews Configuration, the theme files with the map code will be used on all your sections and categories.


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


Then you will be able to use different theme files (without the map) for those categories:

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:

\com_jreviews\jreviews\views\themes\default_02\listings\detail.thtml
\com_jreviews\jreviews\views\themes\default_02\listings\listings_blogview.thtml


The default_02 theme is the same as geomaps theme, but without the map code.


After you rename the files to:

detail_nomap.thtml
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.