J4.x

Task Scheduler: Difference between revisions

From Joomla! Documentation

Brian (talk | contribs)
No edit summary
Cmb (talk | contribs)
Replaced deprecated 'source' tags with 'syntaxhighlight' tags. Other markup changes.
 
Line 1: Line 1:
== Limit Task to CLI only ==
== Limit Task to Command-line Interface Only ==
To implement a task, which is executed via CLI only add the following code to the task XML:
To implement a task, which is executed via the command-line interface (CLI) only, add this code to the task XML:
<source lang="xml">
<syntaxhighlight lang="xml">
<fieldset name="aside">
<fieldset name="aside">
<field name="cli_exclusive" type="hidden" default="1" />
<field name="cli_exclusive" type="hidden" default="1" />
</fieldset>
</fieldset>
</source>
</syntaxhighlight>


The fieldset must be a direct child of the form
The fieldset must be a direct child of the form
<source lang="xml">
<syntaxhighlight lang="xml">
<form>
<form>
<fieldset name="aside">
<fieldset name="aside">
Line 14: Line 14:
</fieldset>
</fieldset>
...
...
</source>
</syntaxhighlight>
<noinclude>
<noinclude>
[[Category:Joomla! 4.x{{#translation:}}]]
[[Category:Joomla! 4.x{{#translation:}}]]
[[Category:Tutorials{{#translation:}}]]
[[Category:Tutorials{{#translation:}}]]
</noinclude>
</noinclude>

Latest revision as of 15:59, 13 September 2023

Limit Task to Command-line Interface Only

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>
...