Skip to content

Commit

Permalink
Implement and add validate="filepath"
Browse files Browse the repository at this point in the history
  • Loading branch information
zero-24 committed Sep 25, 2019
1 parent 0433b29 commit 206fe7a
Show file tree
Hide file tree
Showing 30 changed files with 112 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,7 @@
directory="banners"
hide_none="1"
size="40"
validate="filepath"
/>

<field
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@
type="media"
label="COM_CATEGORIES_FIELD_IMAGE_LABEL"
description="COM_CATEGORIES_FIELD_IMAGE_DESC"
validate="filepath"
/>

<field
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1080,6 +1080,7 @@
label="COM_CONFIG_FIELD_OFFLINE_IMAGE_LABEL"
description="COM_CONFIG_FIELD_OFFLINE_IMAGE_DESC"
showon="offline:1"
validate="filepath"
/>

<field
Expand Down
7 changes: 7 additions & 0 deletions administrator/components/com_contact/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@
description="COM_CONTACT_FIELD_PARAMS_IMAGE_DESC"
default=""
showon="show_info:1[AND]show_image:1"
validate="filepath"
/>

<field
Expand Down Expand Up @@ -467,6 +468,7 @@
hide_none="1"
default=""
showon="contact_icons:0"
validate="filepath"
/>

<field
Expand All @@ -477,6 +479,7 @@
hide_none="1"
default=""
showon="contact_icons:0"
validate="filepath"
/>

<field
Expand All @@ -487,6 +490,7 @@
hide_none="1"
default=""
showon="contact_icons:0"
validate="filepath"
/>

<field
Expand All @@ -497,6 +501,7 @@
hide_none="1"
default=""
showon="contact_icons:0"
validate="filepath"
/>

<field
Expand All @@ -507,6 +512,7 @@
hide_none="1"
default=""
showon="contact_icons:0"
validate="filepath"
/>

<field
Expand All @@ -517,6 +523,7 @@
hide_none="1"
default=""
showon="contact_icons:0"
validate="filepath"
/>
</fieldset>

Expand Down
7 changes: 7 additions & 0 deletions administrator/components/com_contact/models/forms/contact.xml
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@
label="COM_CONTACT_FIELD_ICONS_ADDRESS_LABEL"
description="COM_CONTACT_FIELD_ICONS_ADDRESS_DESC"
hide_none="1"
validate="filepath"
/>

<field
Expand All @@ -261,6 +262,7 @@
label="COM_CONTACT_FIELD_ICONS_EMAIL_LABEL"
description="COM_CONTACT_FIELD_ICONS_EMAIL_DESC"
hide_none="1"
validate="filepath"
/>

<field
Expand All @@ -269,6 +271,7 @@
label="COM_CONTACT_FIELD_ICONS_TELEPHONE_LABEL"
description="COM_CONTACT_FIELD_ICONS_TELEPHONE_DESC"
hide_none="1"
validate="filepath"
/>

<field
Expand All @@ -277,6 +280,7 @@
label="COM_CONTACT_FIELD_ICONS_MOBILE_LABEL"
description="COM_CONTACT_FIELD_ICONS_MOBILE_DESC"
hide_none="1"
validate="filepath"
/>

<field
Expand All @@ -285,6 +289,7 @@
label="COM_CONTACT_FIELD_ICONS_FAX_LABEL"
description="COM_CONTACT_FIELD_ICONS_FAX_DESC"
hide_none="1"
validate="filepath"
/>

<field
Expand All @@ -293,6 +298,7 @@
label="COM_CONTACT_FIELD_ICONS_MISC_LABEL"
description="COM_CONTACT_FIELD_ICONS_MISC_DESC"
hide_none="1"
validate="filepath"
/>
</fieldset>

Expand All @@ -311,6 +317,7 @@
label="COM_CONTACT_FIELD_PARAMS_IMAGE_LABEL"
description="COM_CONTACT_FIELD_PARAMS_IMAGE_DESC"
hide_none="1"
validate="filepath"
/>

<field
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -824,8 +824,9 @@
type="media"
label="COM_CONTENT_FIELD_INTRO_LABEL"
description="COM_CONTENT_FIELD_INTRO_DESC"
validate="filepath"
/>

<field
name="float_intro"
type="list"
Expand Down Expand Up @@ -865,6 +866,7 @@
type="media"
label="COM_CONTENT_FIELD_FULL_LABEL"
description="COM_CONTENT_FIELD_FULL_DESC"
validate="filepath"
/>

<field
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
type="media"
label="COM_MENUS_ITEM_FIELD_MENU_IMAGE_LABEL"
description="COM_MENUS_ITEM_FIELD_MENU_IMAGE_DESC"
validate="filepath"
/>

<field
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
type="media"
label="COM_MENUS_ITEM_FIELD_MENU_IMAGE_LABEL"
description="COM_MENUS_ITEM_FIELD_MENU_IMAGE_DESC"
validate="filepath"
/>

<field
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
type="media"
label="COM_MENUS_ITEM_FIELD_MENU_IMAGE_LABEL"
description="COM_MENUS_ITEM_FIELD_MENU_IMAGE_DESC"
validate="filepath"
/>

<field
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
type="media"
label="COM_MENUS_ITEM_FIELD_MENU_IMAGE_LABEL"
description="COM_MENUS_ITEM_FIELD_MENU_IMAGE_DESC"
validate="filepath"
/>

<field
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
type="media"
label="COM_MENUS_ITEM_FIELD_MENU_IMAGE_LABEL"
description="COM_MENUS_ITEM_FIELD_MENU_IMAGE_DESC"
validate="filepath"
/>

<field
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
type="media"
label="COM_MENUS_ITEM_FIELD_MENU_IMAGE_LABEL"
description="COM_MENUS_ITEM_FIELD_MENU_IMAGE_DESC"
validate="filepath"
/>

<field
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
type="media"
label="COM_MENUS_ITEM_FIELD_MENU_IMAGE_LABEL"
description="COM_MENUS_ITEM_FIELD_MENU_IMAGE_DESC"
validate="filepath"
/>

<field
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
type="media"
label="COM_MENUS_ITEM_FIELD_MENU_IMAGE_LABEL"
description="COM_MENUS_ITEM_FIELD_MENU_IMAGE_DESC"
validate="filepath"
/>

<field
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
type="media"
label="COM_MENUS_ITEM_FIELD_MENU_IMAGE_LABEL"
description="COM_MENUS_ITEM_FIELD_MENU_IMAGE_DESC"
validate="filepath"
/>

<field
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
type="media"
label="COM_MENUS_ITEM_FIELD_MENU_IMAGE_LABEL"
description="COM_MENUS_ITEM_FIELD_MENU_IMAGE_DESC"
validate="filepath"
/>

<field
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@
type="media"
label="COM_NEWSFEEDS_FIELD_FIRST_LABEL"
description="COM_NEWSFEEDS_FIELD_FIRST_DESC"
validate="filepath"
/>

<field
Expand Down Expand Up @@ -320,6 +321,7 @@
type="media"
label="COM_NEWSFEEDS_FIELD_SECOND_LABEL"
description="COM_NEWSFEEDS_FIELD_SECOND_DESC"
validate="filepath"
/>

<field
Expand Down
1 change: 1 addition & 0 deletions administrator/components/com_tags/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@
type="media"
label="COM_TAGS_TAG_LIST_MEDIA_LABEL"
description="COM_TAGS_TAG_LIST_MEDIA_DESC"
validate="filepath"
/>

<field
Expand Down
2 changes: 2 additions & 0 deletions administrator/components/com_tags/models/forms/tag.xml
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@
label="COM_TAGS_FIELD_INTRO_LABEL"
description="COM_TAGS_FIELD_INTRO_DESC"
labelclass="control-label"
validate="filepath"
/>

<field
Expand Down Expand Up @@ -303,6 +304,7 @@
label="COM_TAGS_FIELD_FULL_LABEL"
description="COM_TAGS_FIELD_FULL_DESC"
labelclass="control-label"
validate="filepath"
/>

<field
Expand Down
1 change: 1 addition & 0 deletions administrator/templates/hathor/templateDetails.xml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
description="TPL_HATHOR_LOGO_DESC"
class=""
default=""
validate="filepath"
/>

<field
Expand Down
2 changes: 2 additions & 0 deletions administrator/templates/isis/templateDetails.xml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@
description="TPL_ISIS_LOGO_DESC"
class=""
default=""
validate="filepath"
/>

<field
Expand All @@ -113,6 +114,7 @@
description="TPL_ISIS_LOGIN_LOGO_DESC"
class=""
default=""
validate="filepath"
/>

<field
Expand Down
2 changes: 2 additions & 0 deletions components/com_content/models/forms/article.xml
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@
type="media"
label="COM_CONTENT_FIELD_INTRO_LABEL"
description="COM_CONTENT_FIELD_INTRO_DESC"
validate="filepath"
/>

<field
Expand Down Expand Up @@ -277,6 +278,7 @@
type="media"
label="COM_CONTENT_FIELD_FULL_LABEL"
description="COM_CONTENT_FIELD_FULL_DESC"
validate="filepath"
/>

<field
Expand Down
1 change: 1 addition & 0 deletions components/com_tags/views/tag/tmpl/default.xml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@
type="media"
label="COM_TAGS_TAG_LIST_MEDIA_LABEL"
description="COM_TAGS_TAG_LIST_MEDIA_DESC"
validate="filepath"
/>

<field
Expand Down
1 change: 1 addition & 0 deletions components/com_tags/views/tag/tmpl/list.xml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@
type="media"
label="COM_TAGS_TAG_LIST_MEDIA_LABEL"
description="COM_TAGS_TAG_LIST_MEDIA_DESC"
validate="filepath"
/>

<field
Expand Down
1 change: 1 addition & 0 deletions components/com_tags/views/tags/tmpl/default.xml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@
type="media"
label="COM_TAGS_ALL_TAGS_MEDIA_LABEL"
description="COM_TAGS_ALL_TAGS_MEDIA_DESC"
validate="filepath"
/>

<field
Expand Down
2 changes: 2 additions & 0 deletions components/com_users/views/login/tmpl/default.xml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
type="media"
label="JFIELD_LOGIN_IMAGE_LABEL"
description="JFIELD_LOGIN_IMAGE_DESC"
validate="filepath"
/>

<field
Expand Down Expand Up @@ -159,6 +160,7 @@
type="media"
label="JFIELD_LOGOUT_IMAGE_LABEL"
description="JFIELD_LOGOUT_IMAGE_DESC"
validate="filepath"
/>

</fieldset>
Expand Down

0 comments on commit 206fe7a

Please sign in to comment.