Custom module positions in JReviews theme files

From JReviews Documentation
Revision as of 18:59, 29 November 2012 by Jreviews (Talk | contribs) (Created page with "== Adding custom module positions == in JReviews 2.4 it is possible to add custom module positions to any theme file. The code to load a specific module position is: <source l...")

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

Adding custom module positions

in JReviews 2.4 it is possible to add custom module positions to any theme file.

The code to load a specific module position is:

<?php $Jreviews->loadModulePosition('user1'); ?>


Replace user1 with the actual position name that you want.


Assigning modules to default module positions in JReviews themes.

JReviews 2.4 has some default module positions (useful for assigning modules with ads between listings and reviews):

Blogview list page:

  • jr-blogview-below-listing1
  • jr-blogview-below-listing2
  • jr-blogview-below-listing3


Tableview list page:

  • jr-tableview-below-listing1
  • jr-tableview-below-listing2
  • jr-tableview-below-listing3


Listing detail page:

  • jr-detail-below-fields
  • jr-detail-below-socialbookmarks
  • jr-detail-below-editorreviews
  • jr-detail-below-review1
  • jr-detail-below-review2
  • jr-detail-below-review3


Example

To display a module below first listing on blogview page, edit the module in Module Manager and paste jr-blogview-below-listing1 to the Position input:


CustomModulePosition1.png


The module will be displayed like this:


CustomModulePosition2.png