32
1
mirror of https://github.com/joomla-extensions/weblinks.git synced 2024-12-27 02:12:50 +00:00

Adapt weblink.xml to J4

This commit is contained in:
chmst 2021-07-23 20:17:49 +02:00
parent 63a03c5a33
commit b065affd47

View File

@ -7,7 +7,6 @@
label="WEBLINK_ID_LABEL" label="WEBLINK_ID_LABEL"
readonly="true" readonly="true"
required="true" required="true"
size="10"
default="0" default="0"
/> />
@ -23,9 +22,7 @@
name="title" name="title"
type="text" type="text"
label="JGLOBAL_TITLE" label="JGLOBAL_TITLE"
description="COM_WEBLINKS_FIELD_TITLE_DESC"
required="true" required="true"
size="30"
/> />
<field <field
@ -34,14 +31,12 @@
label="JFIELD_ALIAS_LABEL" label="JFIELD_ALIAS_LABEL"
description="JFIELD_ALIAS_DESC" description="JFIELD_ALIAS_DESC"
hint="JFIELD_ALIAS_PLACEHOLDER" hint="JFIELD_ALIAS_PLACEHOLDER"
size="45"
/> />
<field <field
name="description" name="description"
type="editor" type="editor"
label="JGLOBAL_DESCRIPTION" label="JGLOBAL_DESCRIPTION"
description="COM_WEBLINKS_FIELD_DESCRIPTION_DESC"
buttons="true" buttons="true"
hide="pagebreak,readmore" hide="pagebreak,readmore"
filter="safehtml" filter="safehtml"
@ -52,9 +47,10 @@
name="state" name="state"
type="list" type="list"
label="JSTATUS" label="JSTATUS"
description="JFIELD_PUBLISHED_DESC" class="form-select-color-state"
default="1"
size="1" size="1"
default="1"
validate="options"
> >
<option value="1">JPUBLISHED</option> <option value="1">JPUBLISHED</option>
<option value="0">JUNPUBLISHED</option> <option value="0">JUNPUBLISHED</option>
@ -64,7 +60,6 @@
name="catid" name="catid"
type="categoryedit" type="categoryedit"
label="JCATEGORY" label="JCATEGORY"
description="COM_WEBLINKS_FIELD_CATEGORY_DESC"
extension="com_weblinks" extension="com_weblinks"
required="true" required="true"
/> />
@ -73,18 +68,14 @@
name="url" name="url"
type="url" type="url"
label="COM_WEBLINKS_FIELD_URL_LABEL" label="COM_WEBLINKS_FIELD_URL_LABEL"
description="COM_WEBLINKS_FIELD_URL_DESC"
filter="url" filter="url"
required="true" required="true"
size="45"
/> />
<field <field
name="language" name="language"
type="contentlanguage" type="contentlanguage"
label="JFIELD_LANGUAGE_LABEL" label="JFIELD_LANGUAGE_LABEL"
description="JFIELD_LANGUAGE_DESC"
class="inputbox"
> >
<option value="*">JALL</option> <option value="*">JALL</option>
</field> </field>
@ -100,17 +91,13 @@
name="version_note" name="version_note"
type="text" type="text"
label="JGLOBAL_FIELD_VERSION_NOTE_LABEL" label="JGLOBAL_FIELD_VERSION_NOTE_LABEL"
description="JGLOBAL_FIELD_VERSION_NOTE_DESC" maxlength="255"
class="inputbox"
size="45"
labelclass="control-label"
/> />
<field <field
name="captcha" name="captcha"
type="captcha" type="captcha"
label="COM_WEBLINKS_CAPTCHA_LABEL" label="COM_WEBLINKS_CAPTCHA_LABEL"
description="COM_WEBLINKS_CAPTCHA_DESC"
validate="captcha" validate="captcha"
namespace="weblink" namespace="weblink"
/> />
@ -125,9 +112,7 @@
name="robots" name="robots"
type="hidden" type="hidden"
label="JFIELD_METADATA_ROBOTS_LABEL" label="JFIELD_METADATA_ROBOTS_LABEL"
description="JFIELD_METADATA_ROBOTS_DESC"
filter="unset" filter="unset"
labelclass="control-label"
> >
<option value="">JGLOBAL_USE_GLOBAL</option> <option value="">JGLOBAL_USE_GLOBAL</option>
<option value="index, follow">JGLOBAL_INDEX_FOLLOW</option> <option value="index, follow">JGLOBAL_INDEX_FOLLOW</option>
@ -140,31 +125,21 @@
name="author" name="author"
type="hidden" type="hidden"
label="JAUTHOR" label="JAUTHOR"
description="JFIELD_METADATA_AUTHOR_DESC"
filter="unset" filter="unset"
size="20"
labelclass="control-label"
/> />
<field <field
name="rights" name="rights"
type="hidden" type="hidden"
label="JFIELD_META_RIGHTS_LABEL" label="JFIELD_META_RIGHTS_LABEL"
description="JFIELD_META_RIGHTS_DESC"
filter="unset" filter="unset"
required="false"
labelclass="control-label"
/> />
<field <field
name="xreference" name="xreference"
type="hidden" type="hidden"
label="COM_CONTENT_FIELD_XREFERENCE_LABEL" label="COM_CONTENT_FIELD_XREFERENCE_LABEL"
description="COM_CONTENT_FIELD_XREFERENCE_DESC"
filter="unset" filter="unset"
class="inputbox"
size="20"
labelclass="control-label"
/> />
</fieldset> </fieldset>
</fields> </fields>