Breadcrumbs

Home / Help / FAQ / Tutorials / DJ-Classifieds FAQ / How to use themes

Top Menu

Content

How to use themes
How to use themes 4.7 out of 5 based on 7 votes.

Themes is a new feature. Now you can override views of the component within theme. Not, as previously, within the template.

All necessary files are in 'themes' folder. All you have to do to make a new theme is copy and rename folder 'default'. New theme will be visible on the list in component configuration.



You can also create folder 'views' and copy particular component views to this directory.

For example:

You want to change layout of 'category table view'. All you have to do is:

  1. create directory themes/my_theme/views/items/
  2. copy file views/items/tmpl/default.php to themes/my_theme/views/items/
  3. change the layout in the copied file


You may wonder why there is no 'views' folder in default theme. It's because component views in this theme are take directly from main folder of the component.

 

To make customization simpler, 'item view' is now divided into blocks easy to move.

 

 


Found this article interesting? Subscribe for more.
Or share this article with your friends.
Wednesday, 14 August 2013 13:37
 
User Rating:  (7)
PoorBest
 

Footer Menu