Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are possible fields' filters in Joomla module parameters?

I am looking for possible filters' list when adding parameters' field for a module settings.

I know that filter="raw" and filter="integer" exists from examples at Text form field type.

But what are other possible filters for these fields?

like image 429
Lukas Greblikas Avatar asked Aug 15 '13 19:08

Lukas Greblikas


2 Answers

I am not totally sure if this is it, but may want to see this list directly from the code, with the method clean().

So the list would be:

  • INT / INTEGER
  • UINT
  • FLOAT / DOUBLE
  • BOOL / BOOLEAN
  • WORD
  • ALNUM
  • CMD
  • BASE64
  • STRING
  • HTML
  • ARRAY
  • PATH
  • USERNAME
  • RAW

Let me know if this helps.

like image 118
Valentin Despa Avatar answered Sep 28 '22 05:09

Valentin Despa


Posting as a guest so I couldn't comment ;) You might also find the list of available field types useful for capturing data like URLs and emails. You can find the full list here. Also available in the folder structure at libraries/cms/form/field and libraries/joomla/form/fields. There are URL and email fields which, I believe, include the relevant filtering. Usage would be as follows in the .xml:

<field name="myAwesomeURL" type="url" class="awesome"></field>

This renders as a text input box.

like image 26
Gaetane le Grange Avatar answered Sep 28 '22 05:09

Gaetane le Grange