How to use themes

How to use themes

The theme is a feature allowing you to override views of the component (globally or for chosen categories) and using your own, non-default CSS files. Using DJ-Classifieds Themes for overriding ideas 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 to another.

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



    Please note that a new version of the knowledge base is available at 
    https://dj-extensions.com/knowledge-base


      • Related Articles

      • How to use FaLang with DJ-Classifieds

        Here below, you'll find a short tutorial about how to use FaLang with DJ-Classifieds for Joomla.  This will allow you to translate DJ-Classifieds to any language. Falang is a 3rd party integrated with DJ-Classifieds. It allows to translate ...
      • How to use DJ-Classifieds-Importer

        Important Note: We distribute the DJ-Classifieds-Importer component along with the active subscription of DJ-Classifieds. That means that if your subscription for DJ-Classifieds is active, you can download and use the DJ-Classifieds-Importer ...
      • How to use JMailAlerts with DJ-Classifieds

        First, you need to download and install J! email alerts. You'll find relevant information on developer's site: http://techjoomla.com/jmailalerts/view-category.html (be sure to be logged in to download the extension - it's free) Once installed you ...
      • EasySocial integration for DJ-Classifieds

        In this tutorial, I’ll show you how to install both Joomla plugin and EasySocial application. I will also show a basic configuration that can help you display ads on your community stream and social profile. This plugin comes free with the ...
      • How to resize images in DJ-Classifieds?

        DJ-Classifieds keeps the original images/pictures when you upload them. If you want to change your website's template or alter the images in adverts, categories or profiles to a better fit, you can always do this following this tutorial. ( Video ...