J4.x

Task Scheduler

From Joomla! Documentation

Revision as of 10:59, 13 September 2023 by Cmb (talk | contribs) (Replaced deprecated 'source' tags with 'syntaxhighlight' tags. Other markup changes.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Limit Task to Command-line Interface Only[edit]

To implement a task, which is executed via the command-line interface (CLI) only, add this code to the task XML:

<fieldset name="aside">
	<field name="cli_exclusive" type="hidden" default="1" />
</fieldset>

The fieldset must be a direct child of the form

<form>
	<fieldset name="aside">
		<field name="cli_exclusive" type="hidden" default="1" />
	</fieldset>
...