- Where Developers Learn, Share, & Build Careers
In setting parameters for my component, I want one of them to be an article ID that opens and uses is done. According to, text is the only option.
Can the integers be specified, or is there any way to validate the input?
As far as I know, text is your only standard solution Joomla, however, allows for custom parameter types. You can imagine that for an integer, but if this is for article selection only, then what can you do for Joomla for the com_content component?
admin \ component \ com_mycomponent \ elements
admin \ components \ com_content \ elements \ article.php in your new folder (and for index.html security)
& lt; Parameter addpath = "/ admin / components / com_mycomponent / elements" />
& lt; Ultimate type = "article" name = "article_id" default = "0" label = "choose paragraph" />
Comments
Post a Comment