Task Scheduler: Difference between revisions
From Joomla! Documentation
No edit summary |
Replaced deprecated 'source' tags with 'syntaxhighlight' tags. Other markup changes. |
||
| Line 1: | Line 1: | ||
== Limit Task to | == Limit Task to Command-line Interface Only == | ||
To implement a task, which is executed via CLI only add | To implement a task, which is executed via the command-line interface (CLI) only, add this code to the task 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> | ||
</ | </syntaxhighlight> | ||
The fieldset must be a direct child of the form | The fieldset must be a direct child of the form | ||
< | <syntaxhighlight lang="xml"> | ||
<form> | <form> | ||
<fieldset name="aside"> | <fieldset name="aside"> | ||
| Line 14: | Line 14: | ||
</fieldset> | </fieldset> | ||
... | ... | ||
</ | </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>
...