PageRenderTime 17ms CodeModel.GetById 13ms app.highlight 2ms RepoModel.GetById 0ms app.codeStats 0ms

/administrator/components/com_newsfeeds/models/forms/newsfeed.xml

https://bitbucket.org/eternaware/joomus
XML | 281 lines | 243 code | 38 blank | 0 comment | 0 complexity | b3373471b9e198432f96ac7acb750d98 MD5 | raw file
Possible License(s): LGPL-2.1
  1<?xml version="1.0" encoding="utf-8"?>
  2<form>
  3	<fieldset addfieldpath="/administrator/components/com_categories/models/fields" >
  4		<field name="id" type="text" default="0"
  5			readonly="true" class="readonly" label="JGLOBAL_FIELD_ID_LABEL"
  6			description="JGLOBAL_FIELD_ID_DESC" />
  7
  8		<field name="name" type="text" label="JGLOBAL_TITLE"
  9			description="JFIELD_TITLE_DESC" class="inputbox" size="30"
 10			required="true" />
 11
 12		<field name="alias" type="text" label="JFIELD_ALIAS_LABEL"
 13			description="JFIELD_ALIAS_DESC" class="inputbox"
 14			size="45" />
 15
 16		<field name="published" type="list"
 17			label="JSTATUS" description="JFIELD_PUBLISHED_DESC"
 18			class="inputbox span12 small" size="1" default="1"
 19		>
 20			<option value="1">
 21				JPUBLISHED</option>
 22			<option value="0">
 23				JUNPUBLISHED</option>
 24			<option value="2">
 25				JARCHIVED</option>
 26			<option value="-2">
 27				JTRASHED</option>
 28		</field>
 29
 30		<field name="catid" type="categoryedit" extension="com_newsfeeds"
 31			label="JCATEGORY" description="COM_NEWSFEEDS_FIELD_CATEGORY_DESC"
 32			class="inputbox" required="true"
 33		>
 34		</field>
 35
 36		<field name="language" type="contentlanguage" label="JFIELD_LANGUAGE_LABEL"
 37			description="COM_NEWSFEEDS_FIELD_LANGUAGE_DESC" class="inputbox span12 small"
 38		>
 39			<option value="*">JALL</option>
 40		</field>
 41		<field name="description" type="editor" buttons="true" hide="pagebreak,readmore"
 42			class="inputbox"
 43			filter="JComponentHelper::filterText"
 44			label="JGLOBAL_DESCRIPTION" description="COM_WEBLINKS_FIELD_DESCRIPTION_DESC" />
 45
 46		<field name="link" type="url" filter="url" class="inputbox"
 47			size="60" label="COM_NEWSFEEDS_FIELD_LINK_LABEL"
 48			description="COM_NEWSFEEDS_FIELD_LINK_DESC" required="true" />
 49
 50		<field name="numarticles" type="Text" class="inputbox"
 51			default="5" size="2" label="COM_NEWSFEEDS_FIELD_NUM_ARTICLES_LABEL"
 52			description="COM_NEWSFEEDS_FIELD_NUM_ARTICLES_DESC"
 53			required="true" />
 54
 55		<field name="cache_time" type="Text" class="inputbox"
 56			default="3600" size="4" label="COM_NEWSFEEDS_FIELD_CACHETIME_LABEL"
 57			description="JGLOBAL_FIELD_FIELD_CACHETIME_DESC"
 58			required="true" />
 59
 60		<field name="ordering" type="ordering" class="inputbox"
 61			label="JFIELD_ORDERING_LABEL" description="JFIELD_ORDERING_DESC" />
 62
 63		<field name="rtl" type="list" class="inputbox"
 64			default="0" label="COM_NEWSFEEDS_FIELD_RTL_LABEL"
 65			description="COM_NEWSFEEDS_FIELD_RTL_DESC"
 66		>
 67			<option value="0">COM_NEWSFEEDS_FIELD_VALUE_SITE
 68			</option>
 69			<option value="1">COM_NEWSFEEDS_FIELD_VALUE_LTR
 70			</option>
 71			<option value="2">COM_NEWSFEEDS_FIELD_VALUE_RTL
 72			</option>
 73		</field>
 74
 75		<field name="created" type="calendar"
 76			label="JGLOBAL_FIELD_CREATED_LABEL" description="JGLOBAL_FIELD_CREATED_DESC"
 77			class="inputbox" size="22" format="%Y-%m-%d %H:%M:%S"
 78			filter="user_utc" />
 79
 80		<field name="created_by" type="user"
 81			label="JGLOBAL_FIELD_Created_by_Label" description="JGLOBAL_FIELD_CREATED_BY_DESC" />
 82
 83		<field name="created_by_alias" type="text"
 84			label="JGLOBAL_FIELD_Created_by_alias_Label" description="JGLOBAL_FIELD_CREATED_BY_ALIAS_DESC"
 85			class="inputbox" size="20" />
 86
 87		<field name="modified" type="calendar" class="readonly"
 88			label="JGLOBAL_FIELD_Modified_Label" description="COM_NEWSFEEDS_FIELD_MODIFIED_DESC"
 89			size="22" readonly="true" format="%Y-%m-%d %H:%M:%S" filter="user_utc" />
 90
 91		<field name="modified_by" type="user" label="JGLOBAL_FIELD_MODIFIED_BY_LABEL"
 92			class="readonly" readonly="true" filter="unset"  />
 93
 94		<field name="version" type="text" class="readonly"
 95			label="COM_NEWSFEEDS_FIELD_VERSION_LABEL" size="6" description="COM_NEWSFEEDS_FIELD_VERSION_DESC"
 96			readonly="true" filter="unset" />
 97
 98
 99		<field name="checked_out" type="Text" class="inputbox"
100			size="6" label="JGLOBAL_FIELD_CHECKEDOUT_LABEL"
101			description="JGLOBAL_FIELD_CHECKEDOUT_DESC" readonly="true"
102			filter="unset" />
103
104		<field name="checked_out_time" type="Text" class="inputbox"
105			size="6" label="JGLOBAL_FIELD_CHECKEDOUT_TIME_LABEL"
106			description="JGLOBAL_FIELD_CHECKEDOUT_TIME_DESC"
107			readonly="true" filter="unset" />
108
109		<field name="publish_up" type="calendar"
110			label="JGLOBAL_FIELD_PUBLISH_UP_LABEL" description="JGLOBAL_FIELD_PUBLISH_UP_DESC"
111			class="inputbox" format="%Y-%m-%d %H:%M:%S" size="22"
112			filter="user_utc" />
113
114		<field name="publish_down" type="calendar"
115			label="JGLOBAL_FIELD_PUBLISH_DOWN_LABEL" description="JGLOBAL_FIELD_PUBLISH_DOWN_DESC"
116			class="inputbox" format="%Y-%m-%d %H:%M:%S" size="22"
117			filter="user_utc" />
118
119		<field name="access" type="accesslevel" label="JFIELD_ACCESS_LABEL"
120			description="JFIELD_ACCESS_DESC" class="inputbox span12 small" size="1" />
121
122		<field name="metakey" type="textarea"
123			label="JFIELD_META_KEYWORDS_LABEL" description="JFIELD_META_KEYWORDS_DESC"
124			class="inputbox" rows="3" cols="30" />
125
126		<field name="metadesc" type="textarea"
127			label="JFIELD_META_DESCRIPTION_LABEL" description="JFIELD_META_DESCRIPTION_DESC"
128			class="inputbox" rows="3" cols="30" />
129
130		<field name="xreference" type="text"
131			label="JFIELD_XREFERENCE_LABEL" description="JFIELD_XREFERENCE_DESC"
132			class="inputbox" size="20" />
133
134	</fieldset>
135	<fields name="images">
136			<field
137				name="image_first"
138				type="media"
139				label="COM_NEWSFEEDS_FIELD_FIRST_LABEL"
140				description="COM_NEWSFEEDS_FIELD_FIRST_DESC" />
141			<field
142				name="float_first"
143				type="list"
144				label="COM_NEWSFEEDS_FLOAT_LABEL"
145				description="COM_NEWSFEEDS_FLOAT_DESC">
146					<option value="">JGLOBAL_USE_GLOBAL</option>
147					<option value="right">COM_NEWSFEEDS_RIGHT</option>
148					<option value="left">COM_NEWSFEEDS_LEFT</option>
149					<option value="none">COM_NEWSFEEDS_NONE</option>
150			</field>
151			<field name="image_first_alt"
152				type="text"
153				label="COM_NEWSFEEDS_FIELD_IMAGE_ALT_LABEL"
154				description="COM_NEWSFEEDS_FIELD_IMAGE_ALT_DESC"
155				class="inputbox"
156				size="20" />
157			<field name="image_first_caption"
158				type="text"
159				label="COM_NEWSFEEDS_FIELD_IMAGE_CAPTION_LABEL"
160				description="COM_NEWSFEEDS_FIELD_IMAGE_CAPTION_DESC"
161				class="inputbox"
162				size="20" />
163			<field
164				name="spacer1"
165				type="spacer"
166				hr="true"
167				/>
168			<field
169				name="image_second"
170				type="media"
171				label="COM_NEWSFEEDS_FIELD_SECOND_LABEL"
172				description="COM_NEWSFEEDS_FIELD_SECOND_DESC" />
173			<field
174				name="float_second"
175				type="list"
176				label="COM_NEWSFEEDS_FLOAT_LABEL"
177				description="COM_NEWSFEEDS_FLOAT_DESC">
178					<option value="">JGLOBAL_USE_GLOBAL</option>
179					<option value="right">COM_NEWSFEEDS_RIGHT</option>
180					<option value="left">COM_NEWSFEEDS_LEFT</option>
181					<option value="none">COM_NEWSFEEDS_NONE</option>
182			</field>
183			<field name="image_second_alt"
184				type="text"
185				label="COM_NEWSFEEDS_FIELD_IMAGE_ALT_LABEL"
186				description="COM_NEWSFEEDS_FIELD_IMAGE_ALT_DESC"
187				class="inputbox"
188				size="20" />
189			<field name="image_second_caption"
190				type="text"
191				label="COM_NEWSFEEDS_FIELD_IMAGE_CAPTION_LABEL"
192				description="COM_NEWSFEEDS_FIELD_IMAGE_CAPTION_DESC"
193				class="inputbox"
194				size="20" />
195	</fields>
196
197	<fields name="params">
198		<fieldset name="jbasic" label="JGLOBAL_FIELDSET_DISPLAY_OPTIONS">
199
200			<field name="show_feed_image" type="list"
201				label="COM_NEWSFEEDS_FIELD_SHOW_FEED_IMAGE_LABEL"
202				description="COM_NEWSFEEDS_FIELD_SHOW_FEED_IMAGE_DESC"
203			>
204				<option value="">JGLOBAL_USE_GLOBAL</option>
205				<option value="0">JHIDE</option>
206				<option value="1">JSHOW</option>
207			</field>
208
209			<field name="show_feed_description" type="list"
210				label="COM_NEWSFEEDS_FIELD_SHOW_FEED_DESCRIPTION_LABEL"
211				description="COM_NEWSFEEDS_FIELD_SHOW_FEED_DESCRIPTION_DESC"
212			>
213				<option value="">JGLOBAL_USE_GLOBAL</option>
214				<option value="0">JHIDE</option>
215				<option value="1">JSHOW</option>
216			</field>
217
218			<field name="show_item_description" type="list"
219				label="COM_NEWSFEEDS_FIELD_SHOW_ITEM_DESCRIPTION_LABEL"
220				description="COM_NEWSFEEDS_FIELD_SHOW_ITEM_DESCRIPTION_DESC"
221			>
222				<option value="">JGLOBAL_USE_GLOBAL</option>
223				<option value="0">JHIDE</option>
224				<option value="1">JSHOW</option>
225			</field>
226
227			<field name="feed_character_count" type="text" size="6"
228				default="0" label="COM_NEWSFEEDS_FIELD_CHARACTERS_COUNT_LABEL"
229				description="COM_NEWSFEEDS_FIELD_CHARACTERS_COUNT_DESC" />
230			<field
231				name="newsfeed_layout"
232				type="componentlayout"
233				label="JFIELD_ALT_LAYOUT_LABEL"
234				description="JFIELD_ALT_COMPONENT_LAYOUT_DESC"
235				extension="com_newsfeeds"
236				view="newsfeed"
237				useglobal="true"
238				/>
239
240			<field name="feed_display_order" type="list"
241				label="COM_NEWSFEEDS_FIELD_FEED_DISPLAY_ORDER_LABEL"
242				description="COM_NEWSFEEDS_FIELD_FEED_DISPLAY_ORDER_DESC"
243			>
244				<option value="">JGLOBAL_USE_GLOBAL</option>
245				<option value="des">JGLOBAL_MOST_RECENT_FIRST</option>
246				<option value="asc">JGLOBAL_OLDEST_FIRST</option>
247			</field>
248
249		</fieldset>
250	</fields>
251
252	<fields name="metadata">
253		<fieldset name="jmetadata" label="JGLOBAL_FIELDSET_METADATA_OPTIONS">
254
255			<field name="robots"
256			type="list"
257			label="JFIELD_METADATA_ROBOTS_LABEL"
258			description="JFIELD_METADATA_ROBOTS_DESC"
259		>
260			<option value="">JGLOBAL_USE_GLOBAL</option>
261			<option value="index, follow">JGLOBAL_INDEX_FOLLOW</option>
262			<option value="noindex, follow">JGLOBAL_NOINDEX_FOLLOW</option>
263			<option value="index, nofollow">JGLOBAL_INDEX_NOFOLLOW</option>
264			<option value="noindex, nofollow">JGLOBAL_NOINDEX_NOFOLLOW</option>
265		</field>
266
267			<field name="rights" type="text"
268				label="JFIELD_META_RIGHTS_LABEL" description="JFIELD_META_RIGHTS_DESC"
269				required="false" filter="string" cols="30" rows="2" />
270		</fieldset>
271
272		<field name="hits"
273			type="text"
274			class="readonly"
275			size="6" label="JGLOBAL_HITS"
276			description="COM_WEBLINKS_HITS_DESC"
277			readonly="true"
278			filter="unset" />
279
280	</fields>
281</form>