Skip to content

Instantly share code, notes, and snippets.

@volandku
Last active September 22, 2020 14:50
Show Gist options
  • Save volandku/872cf21ee0ca339615ff4328e0244283 to your computer and use it in GitHub Desktop.
Save volandku/872cf21ee0ca339615ff4328e0244283 to your computer and use it in GitHub Desktop.
Example for joomla xml field type com_fileds aka jcfileds
<field
name="field_title"
type="sql"
label="Select a field for title"
query="SELECT id, title FROM #__fields WHERE context LIKE '%com_content.article%' AND state=1"
key_field="id"
value_field="title"
required="true"
>
@volandku
Copy link
Author

query="SELECT id, title FROM #__fields WHERE context LIKE '%com_content.article%' AND state=1"
для показа только включенных полей

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment