How to use Custom Field plugin for DJ-Catalog2

How to use Custom Field plugin for DJ-Catalog2

Custom Field Plugin for DJ-Catalog2 component allows adding an embedded custom field into the product's description. You'll be able to display any custom field anywhere in the description just using the short-code.

How to enable the Custom Field plugin

Go to "Extensions" and choose a "Plugin Manager."
Write a plugin's name and find it using the search option.

Open the plugin. It's currently disabled. It would help if you marked it as enabled to use it.
Below you can see the plugin's overview:

How to use Custom Field plugin correctly.

As you can see in the picture above, you need to insert specified content to choose the product's description. 
You can use:
 {djc2customfield color} - it displays a custom field which alias equals to 'color.'
 {djc2customfield specification label="0" unset="0"} - displays custom field which alias equals to 'specification, hides its label and allows the attribute to be displayed in standard extra fields table
To use the proper "alias," you need to know your defined extra fields. There are visible in the DJ-Catalog2 component "Extra fields" option.
We will show how it works using an example.
Let's paste a "{djc2customfield facilities}" into the description. "Facilities" is the alias name of a defined custom field. 

And that's how it looks on the front page. As you see, the Custom field is now visible in the product's description, and it disappeared from the custom fields table under the description.
Now let's use another variant. We paste a {djc2customfield facilities label="0" unset="0"} to product description in the same way as we did it before. Our custom field is now displayed in a product's description (without a label), and it's still visible in the custom fields table below.
To keep the label visible we need only to change the "label value" from "0" to "1": {djc2customfield facilities label="1" unset="0"} 
There is also another possibility. If you define the "unset" value with other value than "0," this will result in such view:

The "Custom fields" table under the description does not contain the "Facilities" extra field.
If you are also using a DJ-Catalog2 Pagebreak plugin (for tabs), please note that it should appear as the last element for proper functioning.

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


      • Related Articles

      • DJ-Catalog2 Custom Field Plugin

        DJ-Catalog2 Custom Field Plugin allows to embed custom field into product's description, e.g.: {djc2customfield color} – displays custom field which alias equals to 'color.' {djc2customfield specification label="0" unset="0"} – displays custom field ...
      • Registration plugin for DJ-Classifieds

        With registration plugin for DJ-Classifieds, you can overwrite regular Joomla registration and allow users to fill fields that will be then visible in their DJ-Classifieds profile. This plugin comes free with the subscription of the extension. You'll ...
      • Extra/Custom fields in DJ-Classifieds

        The DJ-Classifieds component allows assigning additional fields to the advert details from a certain category. Settings To create a custom field, click on the Extra Fields button from the Control Panel, then click New from the top right toolbar, and ...
      • User DJ-Catalog2 Plugin

        User DJ-Catalog2 plugin allows adding additional information to a user profile. The user defines them at the registration process. This plugin comes free with the subscription of the extension. You'll find it installed (you may need to enable it ...
      • How to use Album Custom Field?

        With DJ-MediaTools custom field plugin you can utilize the custom fields in Joomla articles with DJ-MediaTools. Using custom fields is a great way to have the content better structured and more easily manageable by the administrators of the website. ...