6

In a Joomla 3.x component, a parameter that's frequently listed in the MODELS > FORMS > VIEWNAME.XML file is option_on or option_off.

For example;

<field
    name="something_amazing"
    type="editor"
    label="COM_YOURNAME_FORM_LBL_VIEWNAME_SOMETHING_AMAZING"
    description="COM_YOURNAME_FORM_DESC_VIEWNAME_SOMETHING_AMAZING"
    menu_published="0"
    filter="safehtml"
    option_on="Yes"
    option_off="Yes"
/>

Many of the available parameters are listed on the official documentation, but no matter where I look, I can't seem to find an explanation of these particular fields.

What are they for, and can you give an example of when you might use them?

Thanks in advance!

4
  • In which component did you find that parameter?
    – fruppel
    Commented May 12, 2015 at 11:56
  • 3
    I noticed those fields too, but only in components created with component-creator.com. So you could ask them instead. And tell us all about it here :-) Commented May 12, 2015 at 12:12
  • I couldn't find even one such instance in Joomla core files. So it must be from third party components you are using.
    – Nagarjun
    Commented May 12, 2015 at 17:54
  • @COBIZ - "By Jove, Holmes, I think you've cracked it!". Feel free to post that as an answer and I'll give you the tick - otherwise, I'll take a closer look and report back on its exact purpose in the next day or two. Thank you all for clarifying that it's not specific to Joomla, though - most helpful. ^_^
    – Hobbes
    Commented May 12, 2015 at 22:45

1 Answer 1

2

These options are generated (only) by extensions created with component-creator.com.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.