Difference between revisions of "Customizing the listing detail page"

From JReviews Documentation
Jump to: navigation, search
(Created page with 'Theme file of the listing detail page is located here: *<span style="color: blue">\com_jreviews\jreviews\views\themes\{theme_name}\listings\detail.thtml</span> Before making any…')
(No difference)

Revision as of 23:34, 28 October 2009

Theme file of the listing detail page is located here:

  • \com_jreviews\jreviews\views\themes\{theme_name}\listings\detail.thtml

Before making any changes, read How does the JReviews Theme Engine work and copy the file to "jreviews_overrides" folder.


Almost every block of code in detail.thtml is commented and it shouldn't be a problem to find what you want to modify.

You can make any modifications below "EDIT HTML BELOW THIS LINE"


Structure of the detail.thtml file

  • <div class="jr_pathway"> - JReviews breadcrumbs
  • <h1 class="contentheading"> - listing title and icons (new, featured, hot)
  • <div class="contentInfoContainer"> - author details, date, hits, favorite button, listing management, rss icons
  • <div class="itemImages">
    • <div class="itemMainImage"> - main listing image
    • <div class="itemThumbnails"> - thumbnails of other images
  • <table class="rating_table"> - editor and user rating stars
  • <div class="jr_customFields"> - listing custom fields, /elements/custom_fields.thtml file included
  • <div class="contentFulltext"> - summary & description
  • <div id="jr_reviewEditorSummary"> - editor reviews summary
  • <form class="jr_form jr_formContainer"> - editor review submit form, /reviews/reviews.thtml file included
  • <div id="jr_reviewEditor"> - editor reviews
  • <div id="jr_reviewUserSummary"> - user reviews summary
  • <form class="jr_form jr_formContainer"> - user review submit form, /reviews/reviews.thtml file included
  • <div id="jr_user_reviews"> - user reviews, /reviews/reviews.thtml file included


To see what data you can use in detail.thtml file, uncomment this line:

prx($listing); // Listing array


Or take a look at the list of mostly used Data you can use in detail.thtml theme file