Extra/Custom fields in DJ-Classifieds

Extra/Custom fields in DJ-Classifieds

The DJ-Classifieds component allows assigning additional fields to the advert details from a certain category.


To create a custom field, click on the  Extra Fields button from the Control Panel, then click New from the top right toolbar, and you will be directed to the page:

Short description:

  • Label – enter the label of the field
  • Name – enter the name of the field.
  • Tooltip description – enter the description of the field.
  • Use in – choose where to use the field - user profile, contact section in ad or item description.
  • Field group - the field can be part of one of the defined field groups.
  • Type – select type of the field
  • Default value – default value of the field
  • Default value profile field - select profile field you want to use
  • Show value on click - yes/no.
  • Field parameters – add additional parameters to the field.
  • Published – the status of the field
  • CSS class - a class attribute of the field's div wrapper for styling purposes
  • Attributes - additional HTML attributes of the field.
  • All categories - set the field to be assigned to all categories.
  • Categories assignment - select one or more categories.
  • Assign to subcategories - also assigned to the subcategories of the chosen categories.

Search options:

  • In search – choose if the field should appear as a search attribute in the search module.
Buy now options:
  1. Product option - display in the BuyNow advert's form
Conditional fields:
  1. Trigger field - select the custom field that will cause this field to show up
  2. Trigger value - specify the value/values of the trigger field that will cause this field to show up

In the right panel, there is a "Viewing access" parameter where you can select who can see the field of the frontend. Just set the "Viewing access" level for the field, and this field will be visible on the frontend only for users with this access level. Great if you want to show the fields only for registered users or users with a specified Access level.

Please note that when you're using the fields within Profile, you can also select the option "Use in registration" - this way users will see this field when registering (in the registration form). Combining the mentioned feature with "Viewing Access" you can let users fill the field that will later be visible only for the administrator (for example if you as an Administrator want to gather some information from the user that will not be later visible for other users browsing the profiles). 
Each custom field that is assigned to a Fields Group gets the CSS class that can be used for styling.

See the example: 

In this case. Two fields: Year and Millage were assigned to the "Important fields" group. 
As you can see in the console both of these fields got a new class: group_Important-fields.

Custom fields types

Selecting a given field type from the list results in new settings relevant to the selected field type.  
Let's take a look at the detailed overview of all available field types:


The Input Box field is used for many types of content. It is also the field type used for numbers.  

You can define the "Input type" by choosing one type from the list:

You can choose from text, number, email, tel, URL, date, DateTime-local, month, time, week, password, and color.
You can also enable Joomla! Form validation for numbers if needed.


The Textarea is very straight-forward.  It's a single-row field for entering text.

Select list

Define the list of options to choose from. Enter field's values in add/edit form separated by a semicolon (;) 


The Radio field is similar to Checkbox, except it uses radio buttons, and you can only make a single choice.  Enter field's values in add/edit form separated by a semicolon (;) 


The Checkboxes field allows users to choose from predefined choices (defined values). Enter field's values in add/edit form separated by a semicolon (;) 


Enter the format date based on the PHP date function. 'Y-m-d' by default.

Date from-to

Enter the format date (from-to) based on the PHP date function. 'Y-m-d' by default.

Set the link in the empty text field.


The image field allows users to upload an image according to the settings (requirements) defined in the backend.  The image thumbnail dimensions (width/height), max image size, CSS class, and attributes can be specified during the custom field creation. 

      • Related Articles

      • How to order "fields" in DJ-Classifieds

        If you are wondering how to order "fields" in DJ-Classifieds component, follow this simple tutorial to learn everything! It's easy to make! Open the DJ-Classifieds component. Navigate to the "Fields" button and open it. Now navigate to the right, ...
      • How to add custom fields to user profile in DJ-Classifieds

        This step by step tutorial shows how to add extra fields to DJ-Classifieds User's Profile. You can find the other tutorial explaining how to allow user's pictures in profiles here . STEP#1. Open Extra Fields in DJ-Classifieds Component STEP#2. Create ...
      • How to add new extra field in DJ-Classifieds

        It's easy to add a new custom field in DJ-Classifieds. The extra fields can be used in the Category, Contact, Profile, and the Ask Seller Form. Just follow this simple tutorial to get it working. We will show the example assigning the field to the ...
      • Conditional Fields DJ-Classifieds App

        The principle of conditional fields is simple - when editing a custom field, you can specify a dependency when that field is displayed. The chosen custom field will appear only if a specific value is selected in another custom field.  Conditional ...
      • How to change date format in DJ-Classifieds custom fields

        You can change the date format in extra fields in DJ-Classifieds. Let’s add the custom field with a date. For the sake of this tutorial, I’ll create the “Availability” custom field that will be used for showing the availability for the apartments. ...