Skip to content

Commit

Permalink
Create Article Menu type - categories on the fly (#14639)
Browse files Browse the repository at this point in the history
We now have the ability to create categories on the fly as well as to select a category in menu items

This PR add the ability to do that when selecting a default category to use for the mennu item type Create Article

### Test instrucions
Before PR you have a category list select after setting default category to yes in the opptions tab
After PR you have a modal select and a create

NOTE the tooltip needs to be updated as well but that has been done iin #14367
  • Loading branch information
brianteeman authored and rdeutz committed Mar 15, 2017
1 parent 6f7624a commit 036b691
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions components/com_content/views/form/tmpl/edit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
</message>
</layout>
<fields name="params">
<fieldset name="basic">
<fieldset name="basic"
addfieldpath="/administrator/components/com_categories/models/fields"
>
<field name="enable_category"
type="radio"
class="btn-group btn-group-yesno"
Expand All @@ -19,12 +21,21 @@
<option value="1">JYES</option>
<option value="0">JNO</option>
</field>
<field name="catid"
type="category"

<field
name="catid"
type="modal_category"
label="JGLOBAL_CHOOSE_CATEGORY_LABEL"
description="JGLOBAL_CHOOSE_CATEGORY_DESC"
extension="com_content"
description="JGLOBAL_CHOOSE_CATEGORY_DESC"
showon="enable_category:1" />
required="true"
select="true"
new="true"
edit="true"
clear="true"
showon="enable_category:1"
/>


<field
name="redirect_menuitem"
Expand Down

0 comments on commit 036b691

Please sign in to comment.