Breadcrumbs

Top Menu

Content

How to use themes
Wednesday, 14 August 2013 13:37
How to use themes 4.7 out of 5 based on 7 votes.

How to use themes

Themes is a feature allowing you to override views of the component (globally or for chosen categories), as well as using your own, non-default css files. Using DJ-Classifieds Themes for overriding views is an alternative to the Joomla! built-in template overrides option.

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

djclassifieds themes config
You can also create a 'views' folder and copy particular component views to this directory.

For example:

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

  1. create a 'themes/my_theme/views/items/' directory
  2. copy the 'views/items/tmpl/default.php' file to 'themes/my_theme/views/items/' (note the missing 'tmpl' subdirectory in the 'themes' path)
  3. change the layout in the copied file

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

To make the customization simpler, 'item view' is now divided into blocks.

phoca thumb l item-view-blocks

There is also the option of selecting a theme at the category level to distinguish the appearance of items from one category from the other.

Open the DJ-Classifieds component and go to "Categories." You can add a new category or edit an existing one. Go to "Themes" and select theme from the list.
choose theme djclassifieds

 


Found this article interesting? Subscribe for more.
Subscribe to the Telegram bot / Subscribe to the Messenger Bot
Or share this article with your friends.

 
 
User Rating:  (7)
PoorBest
 

Buy

DJ-Classifieds

Ultimate classified ads solution for Joomla.

Learn more

Footer Menu