Skip to main content
used newlines to eliminate horizontal scrolling in snippet; improved grammar
Source Link
mickmackusa
  • 4.8k
  • 4
  • 18
  • 48

I have created a custom filter.xml to search for specific documents. Using Joomla's category system, I have also create 3 main categories. Courtrolls, Newsletter and communique.

inIn my filter form  , I have the following field:

<field type="category"
       <fieldcategory="19"
 type="category" category="19"     name="roll"
       extension="com_courtroll"
       label="Select a category"
       description="" 
 default="19"      default="19"
/>
 

The problem is that I only want to have Courtrolls and it'sits subcategories in this field. But, but it shows all my components categories?.

I have created a custom filter.xml to search for specific documents. Using Joomla's category system, I have also create 3 main categories. Courtrolls, Newsletter and communique.

in my filter form  , I have the following field:

        <field type="category" category="19" name="roll" extension="com_courtroll" label="Select a category" description="" default="19" />
 

The problem is that I only want to have Courtrolls and it's subcategories in this field. But it shows all my components categories?

I have created a custom filter.xml to search for specific documents. Using Joomla's category system, I have also create 3 main categories. Courtrolls, Newsletter and communique.

In my filter form, I have the following field:

<field type="category"
       category="19"
       name="roll"
       extension="com_courtroll"
       label="Select a category"
       description="" 
       default="19"
/>

The problem is that I only want to have Courtrolls and its subcategories in this field, but it shows all my components categories.

Source Link

Display only one Category and its sub-categories

I have created a custom filter.xml to search for specific documents. Using Joomla's category system, I have also create 3 main categories. Courtrolls, Newsletter and communique.

in my filter form , I have the following field:

        <field type="category" category="19" name="roll" extension="com_courtroll" label="Select a category" description="" default="19" />

The problem is that I only want to have Courtrolls and it's subcategories in this field. But it shows all my components categories?