mirror of
https://github.com/joomla-extensions/weblinks.git
synced 2025-01-28 23:08:27 +00:00
Adapted to J4
This commit is contained in:
parent
74b5ae8cfa
commit
f898f9ba7d
@ -7,7 +7,6 @@
|
|||||||
name="id"
|
name="id"
|
||||||
type="text"
|
type="text"
|
||||||
label="JGLOBAL_FIELD_ID_LABEL"
|
label="JGLOBAL_FIELD_ID_LABEL"
|
||||||
description="JGLOBAL_FIELD_ID_DESC"
|
|
||||||
readonly="true"
|
readonly="true"
|
||||||
class="readonly"
|
class="readonly"
|
||||||
default="0"
|
default="0"
|
||||||
@ -17,17 +16,15 @@
|
|||||||
name="title"
|
name="title"
|
||||||
type="text"
|
type="text"
|
||||||
label="JGLOBAL_TITLE"
|
label="JGLOBAL_TITLE"
|
||||||
description="COM_WEBLINKS_FIELD_TITLE_DESC"
|
|
||||||
class="input-xxlarge input-large-text"
|
|
||||||
size="40"
|
|
||||||
required="true"
|
required="true"
|
||||||
|
maxlength="250"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<field
|
<field
|
||||||
name="alias"
|
name="alias"
|
||||||
type="text"
|
type="text"
|
||||||
label="JFIELD_ALIAS_LABEL"
|
label="JFIELD_ALIAS_LABEL"
|
||||||
size="40"
|
description="JFIELD_ALIAS_DESC"
|
||||||
hint="JFIELD_ALIAS_PLACEHOLDER"
|
hint="JFIELD_ALIAS_PLACEHOLDER"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
@ -35,7 +32,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"
|
||||||
addfieldprefix="Joomla\Component\Categories\Administrator\Field"
|
addfieldprefix="Joomla\Component\Categories\Administrator\Field"
|
||||||
required="true"
|
required="true"
|
||||||
@ -46,10 +42,8 @@
|
|||||||
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"
|
|
||||||
class="span12"
|
|
||||||
filter="url"
|
filter="url"
|
||||||
size="40"
|
validate="url"
|
||||||
required="true"
|
required="true"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
@ -57,7 +51,6 @@
|
|||||||
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="JComponentHelper::filterText"
|
filter="JComponentHelper::filterText"
|
||||||
@ -67,21 +60,19 @@
|
|||||||
name="hits"
|
name="hits"
|
||||||
type="text"
|
type="text"
|
||||||
label="JGLOBAL_HITS"
|
label="JGLOBAL_HITS"
|
||||||
description="COM_WEBLINKS_HITS_DESC"
|
|
||||||
class="readonly"
|
class="readonly"
|
||||||
size="6"
|
|
||||||
readonly="true"
|
readonly="true"
|
||||||
filter="unset"
|
filter="unset"
|
||||||
|
default="0"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<field
|
<field
|
||||||
name="state"
|
name="state"
|
||||||
type="list"
|
type="list"
|
||||||
label="JSTATUS"
|
label="JSTATUS"
|
||||||
description="COM_WEBLINKS_FIELD_STATE_DESC"
|
class="form-select-color-state"
|
||||||
class="chzn-color-state"
|
|
||||||
size="1"
|
|
||||||
default="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>
|
||||||
@ -94,7 +85,6 @@
|
|||||||
name="ordering"
|
name="ordering"
|
||||||
type="ordering"
|
type="ordering"
|
||||||
label="JFIELD_ORDERING_LABEL"
|
label="JFIELD_ORDERING_LABEL"
|
||||||
description="JFIELD_ORDERING_DESC"
|
|
||||||
content_type="com_weblinks.weblink"
|
content_type="com_weblinks.weblink"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
@ -102,15 +92,14 @@
|
|||||||
name="access"
|
name="access"
|
||||||
type="accesslevel"
|
type="accesslevel"
|
||||||
label="JFIELD_ACCESS_LABEL"
|
label="JFIELD_ACCESS_LABEL"
|
||||||
description="JFIELD_ACCESS_DESC"
|
filter="UINT"
|
||||||
size="1"
|
validate="options"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<field
|
<field
|
||||||
name="language"
|
name="language"
|
||||||
type="contentlanguage"
|
type="contentlanguage"
|
||||||
label="JFIELD_LANGUAGE_LABEL"
|
label="JFIELD_LANGUAGE_LABEL"
|
||||||
description="COM_WEBLINKS_FIELD_LANGUAGE_DESC"
|
|
||||||
>
|
>
|
||||||
<option value="*">JALL</option>
|
<option value="*">JALL</option>
|
||||||
</field>
|
</field>
|
||||||
@ -119,6 +108,7 @@
|
|||||||
name="tags"
|
name="tags"
|
||||||
type="tag"
|
type="tag"
|
||||||
label="JTAG"
|
label="JTAG"
|
||||||
|
class="advancedSelect"
|
||||||
multiple="true"
|
multiple="true"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
@ -126,18 +116,15 @@
|
|||||||
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="250"
|
||||||
size="45"
|
|
||||||
labelclass="control-label"
|
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<field
|
<field
|
||||||
name="created"
|
name="created"
|
||||||
type="calendar"
|
type="calendar"
|
||||||
label="JGLOBAL_FIELD_CREATED_LABEL"
|
label="JGLOBAL_FIELD_CREATED_LABEL"
|
||||||
description="JGLOBAL_FIELD_CREATED_DESC"
|
translateformat="true"
|
||||||
size="22"
|
showtime="true"
|
||||||
format="%Y-%m-%d %H:%M:%S"
|
|
||||||
filter="user_utc"
|
filter="user_utc"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
@ -145,26 +132,23 @@
|
|||||||
name="created_by"
|
name="created_by"
|
||||||
type="user"
|
type="user"
|
||||||
label="JGLOBAL_FIELD_CREATED_BY_LABEL"
|
label="JGLOBAL_FIELD_CREATED_BY_LABEL"
|
||||||
description="JGLOBAL_FIELD_CREATED_BY_Desc"
|
validate="UserId"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<field
|
<field
|
||||||
name="created_by_alias"
|
name="created_by_alias"
|
||||||
type="text"
|
type="text"
|
||||||
label="JGLOBAL_FIELD_CREATED_BY_ALIAS_LABEL"
|
label="JGLOBAL_FIELD_CREATED_BY_ALIAS_LABEL"
|
||||||
description="JGLOBAL_FIELD_CREATED_BY_ALIAS_DESC"
|
|
||||||
size="20"
|
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<field
|
<field
|
||||||
name="modified"
|
name="modified"
|
||||||
type="calendar"
|
type="calendar"
|
||||||
label="JGLOBAL_FIELD_MODIFIED_LABEL"
|
label="JGLOBAL_FIELD_MODIFIED_LABEL"
|
||||||
description="COM_WEBLINKS_FIELD_MODIFIED_DESC"
|
|
||||||
class="readonly"
|
class="readonly"
|
||||||
size="22"
|
|
||||||
readonly="true"
|
readonly="true"
|
||||||
format="%Y-%m-%d %H:%M:%S"
|
translateformat="true"
|
||||||
|
showtime="true"
|
||||||
filter="user_utc"
|
filter="user_utc"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
@ -175,6 +159,7 @@
|
|||||||
class="readonly"
|
class="readonly"
|
||||||
readonly="true"
|
readonly="true"
|
||||||
filter="unset"
|
filter="unset"
|
||||||
|
validate="UserId"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<field
|
<field
|
||||||
@ -193,9 +178,8 @@
|
|||||||
name="publish_up"
|
name="publish_up"
|
||||||
type="calendar"
|
type="calendar"
|
||||||
label="JGLOBAL_FIELD_PUBLISH_UP_LABEL"
|
label="JGLOBAL_FIELD_PUBLISH_UP_LABEL"
|
||||||
description="JGLOBAL_FIELD_PUBLISH_UP_DESC"
|
translateformat="true"
|
||||||
format="%Y-%m-%d %H:%M:%S"
|
showtime="true"
|
||||||
size="22"
|
|
||||||
filter="user_utc"
|
filter="user_utc"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
@ -203,9 +187,8 @@
|
|||||||
name="publish_down"
|
name="publish_down"
|
||||||
type="calendar"
|
type="calendar"
|
||||||
label="JGLOBAL_FIELD_PUBLISH_DOWN_LABEL"
|
label="JGLOBAL_FIELD_PUBLISH_DOWN_LABEL"
|
||||||
description="JGLOBAL_FIELD_PUBLISH_DOWN_DESC"
|
translateformat="true"
|
||||||
format="%Y-%m-%d %H:%M:%S"
|
showtime="true"
|
||||||
size="22"
|
|
||||||
filter="user_utc"
|
filter="user_utc"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
@ -213,9 +196,7 @@
|
|||||||
name="version"
|
name="version"
|
||||||
type="text"
|
type="text"
|
||||||
label="COM_WEBLINKS_FIELD_VERSION_LABEL"
|
label="COM_WEBLINKS_FIELD_VERSION_LABEL"
|
||||||
description="COM_WEBLINKS_FIELD_VERSION_DESC"
|
|
||||||
class="readonly"
|
class="readonly"
|
||||||
size="6"
|
|
||||||
readonly="true"
|
readonly="true"
|
||||||
filter="unset"
|
filter="unset"
|
||||||
/>
|
/>
|
||||||
@ -224,7 +205,6 @@
|
|||||||
name="metakey"
|
name="metakey"
|
||||||
type="textarea"
|
type="textarea"
|
||||||
label="JFIELD_META_KEYWORDS_LABEL"
|
label="JFIELD_META_KEYWORDS_LABEL"
|
||||||
description="JFIELD_META_KEYWORDS_DESC"
|
|
||||||
rows="3"
|
rows="3"
|
||||||
cols="30"
|
cols="30"
|
||||||
/>
|
/>
|
||||||
@ -233,17 +213,16 @@
|
|||||||
name="metadesc"
|
name="metadesc"
|
||||||
type="textarea"
|
type="textarea"
|
||||||
label="JFIELD_META_DESCRIPTION_LABEL"
|
label="JFIELD_META_DESCRIPTION_LABEL"
|
||||||
description="JFIELD_META_DESCRIPTION_DESC"
|
|
||||||
rows="3"
|
rows="3"
|
||||||
cols="30"
|
cols="30"
|
||||||
|
maxlength="160"
|
||||||
|
charcounter="true"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<field
|
<field
|
||||||
name="xreference"
|
name="xreference"
|
||||||
type="text"
|
type="text"
|
||||||
label="JFIELD_XREFERENCE_LABEL"
|
label="JFIELD_XREFERENCE_LABEL"
|
||||||
description="JFIELD_XREFERENCE_DESC"
|
|
||||||
size="20"
|
|
||||||
/>
|
/>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
@ -259,7 +238,6 @@
|
|||||||
name="target"
|
name="target"
|
||||||
type="list"
|
type="list"
|
||||||
label="COM_WEBLINKS_FIELD_TARGET_LABEL"
|
label="COM_WEBLINKS_FIELD_TARGET_LABEL"
|
||||||
description="COM_WEBLINKS_FIELD_TARGET_DESC"
|
|
||||||
default=""
|
default=""
|
||||||
useglobal="true"
|
useglobal="true"
|
||||||
>
|
>
|
||||||
@ -273,7 +251,6 @@
|
|||||||
name="width"
|
name="width"
|
||||||
type="text"
|
type="text"
|
||||||
label="COM_WEBLINKS_FIELD_WIDTH_LABEL"
|
label="COM_WEBLINKS_FIELD_WIDTH_LABEL"
|
||||||
description="COM_WEBLINKS_FIELD_WIDTH_DESC"
|
|
||||||
class="validate-numeric"
|
class="validate-numeric"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
@ -281,17 +258,14 @@
|
|||||||
name="height"
|
name="height"
|
||||||
type="text"
|
type="text"
|
||||||
label="COM_WEBLINKS_FIELD_HEIGHT_LABEL"
|
label="COM_WEBLINKS_FIELD_HEIGHT_LABEL"
|
||||||
description="COM_WEBLINKS_FIELD_HEIGHT_DESC"
|
|
||||||
class="validate-numeric"
|
class="validate-numeric"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<field
|
<field
|
||||||
name="count_clicks"
|
name="count_clicks"
|
||||||
type="list"
|
type="radio"
|
||||||
label="COM_WEBLINKS_FIELD_COUNTCLICKS_LABEL"
|
label="COM_WEBLINKS_FIELD_COUNTCLICKS_LABEL"
|
||||||
description="COM_WEBLINKS_FIELD_COUNTCLICKS_DESC"
|
layout="joomla.form.field.radio.switcher"
|
||||||
class="chzn-color"
|
|
||||||
useglobal="true"
|
|
||||||
>
|
>
|
||||||
<option value="0">JNO</option>
|
<option value="0">JNO</option>
|
||||||
<option value="1">JYES</option>
|
<option value="1">JYES</option>
|
||||||
@ -330,7 +304,6 @@
|
|||||||
type="text"
|
type="text"
|
||||||
label="COM_WEBLINKS_FIELD_IMAGE_ALT_LABEL"
|
label="COM_WEBLINKS_FIELD_IMAGE_ALT_LABEL"
|
||||||
description="COM_WEBLINKS_FIELD_IMAGE_ALT_DESC"
|
description="COM_WEBLINKS_FIELD_IMAGE_ALT_DESC"
|
||||||
size="20"
|
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<field
|
<field
|
||||||
@ -338,7 +311,6 @@
|
|||||||
type="text"
|
type="text"
|
||||||
label="COM_WEBLINKS_FIELD_IMAGE_CAPTION_LABEL"
|
label="COM_WEBLINKS_FIELD_IMAGE_CAPTION_LABEL"
|
||||||
description="COM_WEBLINKS_FIELD_IMAGE_CAPTION_DESC"
|
description="COM_WEBLINKS_FIELD_IMAGE_CAPTION_DESC"
|
||||||
size="20"
|
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<field
|
<field
|
||||||
@ -358,7 +330,6 @@
|
|||||||
name="float_second"
|
name="float_second"
|
||||||
type="list"
|
type="list"
|
||||||
label="COM_WEBLINKS_FLOAT_SECOND_LABEL"
|
label="COM_WEBLINKS_FLOAT_SECOND_LABEL"
|
||||||
description="COM_WEBLINKS_FLOAT_SECOND_DESC"
|
|
||||||
>
|
>
|
||||||
<option value="">JGLOBAL_USE_GLOBAL</option>
|
<option value="">JGLOBAL_USE_GLOBAL</option>
|
||||||
<option value="right">COM_WEBLINKS_RIGHT</option>
|
<option value="right">COM_WEBLINKS_RIGHT</option>
|
||||||
@ -371,7 +342,6 @@
|
|||||||
type="text"
|
type="text"
|
||||||
label="COM_WEBLINKS_FIELD_IMAGE_ALT_LABEL"
|
label="COM_WEBLINKS_FIELD_IMAGE_ALT_LABEL"
|
||||||
description="COM_WEBLINKS_FIELD_IMAGE_ALT_DESC"
|
description="COM_WEBLINKS_FIELD_IMAGE_ALT_DESC"
|
||||||
size="20"
|
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<field
|
<field
|
||||||
@ -379,7 +349,6 @@
|
|||||||
type="text"
|
type="text"
|
||||||
label="COM_WEBLINKS_FIELD_IMAGE_CAPTION_LABEL"
|
label="COM_WEBLINKS_FIELD_IMAGE_CAPTION_LABEL"
|
||||||
description="COM_WEBLINKS_FIELD_IMAGE_CAPTION_DESC"
|
description="COM_WEBLINKS_FIELD_IMAGE_CAPTION_DESC"
|
||||||
size="20"
|
|
||||||
/>
|
/>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</fields>
|
</fields>
|
||||||
@ -396,7 +365,7 @@
|
|||||||
name="robots"
|
name="robots"
|
||||||
type="list"
|
type="list"
|
||||||
label="JFIELD_METADATA_ROBOTS_LABEL"
|
label="JFIELD_METADATA_ROBOTS_LABEL"
|
||||||
description="JFIELD_METADATA_ROBOTS_DESC"
|
validate="options"
|
||||||
>
|
>
|
||||||
<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>
|
||||||
@ -409,11 +378,6 @@
|
|||||||
name="rights"
|
name="rights"
|
||||||
type="text"
|
type="text"
|
||||||
label="JFIELD_META_RIGHTS_LABEL"
|
label="JFIELD_META_RIGHTS_LABEL"
|
||||||
description="JFIELD_META_RIGHTS_DESC"
|
|
||||||
required="false"
|
|
||||||
filter="string"
|
|
||||||
cols="30"
|
|
||||||
rows="2"
|
|
||||||
/>
|
/>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</fields>
|
</fields>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user