Difference between revisions of "Using the Magazine Blogview layout"

From JReviews Documentation
Jump to: navigation, search
(Using the Magazine layout on specific categories or list page menu items)
 
(One intermediate revision by the same user not shown)
Line 6: Line 6:
 
== Using the Magazine layout on specific categories or list page menu items ==  
 
== Using the Magazine layout on specific categories or list page menu items ==  
  
To use the Magazine layout on specific categories, go to the [[Theme Manager]], choose Blogview layout and enter '''_magazine''' as the Theme Suffix, for example:
+
To use the Magazine layout on specific categories, go to the [[Category Layout Manager]], choose Blogview layout and enter '''_magazine''' as the Theme Suffix, for example:
  
 
[[File:Magazine-layout2.png]]
 
[[File:Magazine-layout2.png]]
Line 18: Line 18:
 
To adjust the magazine layout settings, you need to edit the magazine layout theme file which is located here by default:
 
To adjust the magazine layout settings, you need to edit the magazine layout theme file which is located here by default:
  
SITE_ROOT/components/com_jreviews/jreviews/views/themes/default/listings/listings_blogview_magazine.thtml - '''Joomla'''
+
'''Joomla''' - SITE_ROOT/components/com_jreviews/jreviews/views/themes/default/listings/listings_blogview_magazine.thtml
  
SITE_ROOT/wp-content/plugins/jreviews/jreviews/views/themes/default/listings/listings_blogview_magazine.thtml - '''WordPress'''
+
'''WordPress''' - SITE_ROOT/wp-content/plugins/jreviews/jreviews/views/themes/default/listings/listings_blogview_magazine.thtml
  
 
It is recommended to use [[JReviews Code Overrides]] and copy the file to your custom theme folder before making changes.
 
It is recommended to use [[JReviews Code Overrides]] and copy the file to your custom theme folder before making changes.

Latest revision as of 18:52, 28 June 2019

The Magazine Blogview layout allows you to display list page listings in multiple columns with chosen number of leading listings which is very useful for news and blogs sections of your site. Example of a magazine layout:

Magazine-layout.png

Using the Magazine layout on specific categories or list page menu items

To use the Magazine layout on specific categories, go to the Category Layout Manager, choose Blogview layout and enter _magazine as the Theme Suffix, for example:

Magazine-layout2.png

The use it on a specific menu item (i.e. Most Recent Listings), choose the Blogview layout and add _magazine Theme Suffix in the menu item parameters:

Magazine-layout3.png

Choosing number of leading listings and number of columns

To adjust the magazine layout settings, you need to edit the magazine layout theme file which is located here by default:

Joomla - SITE_ROOT/components/com_jreviews/jreviews/views/themes/default/listings/listings_blogview_magazine.thtml

WordPress - SITE_ROOT/wp-content/plugins/jreviews/jreviews/views/themes/default/listings/listings_blogview_magazine.thtml

It is recommended to use JReviews Code Overrides and copy the file to your custom theme folder before making changes.

When you edit the theme file, you will find these 3 settings on top:

$leading_num = 1; 
$intro_num = 6;
$columns = 2;

$leading_num - Choose the number of leading articles that will be displayed in full width. Use 0 if you don't want leading articles.

$intro_num - Choose the number of articles that will be displayed in columns below leading articles. Remaining listings will be displayed as links.

$columns - Choose the number of columns for articles below leading articles.