hello
can you tell me how i can display a message in edit form template please? example : message "how fill these fields"
thank you
| how to display message in edit form |
Monday, 06 June 2011
|
|
||||||
Katerina
on
07 Jun 2011
Hello!
The template of this form can be edited in \components\com_resource\views\article\tmpl\form_articleform_default.php or you need any other template that is installed on the site.
If you need more information please ask.
Regards
maikkaune
on
07 Jun 2011
Do you mean a common message displayed in the joomla system message style? Or display a simple text hint for every field?
The latter is possible with the field's description parameter:
YOURfield -> Layout -> Description
It will output your text in a SPAN CLASS "small". I remember there was a Resources template, where this description field was displayed in a ToolTip... Sorry, I can´t recall it at the moment.
clowride
on
07 Jun 2011
thank you i need to display a message like a joomla system message style i mean
when user submit an article, he can see a message (example : you have to fill all field, ect...)
thank you very much
maikkaune
on
07 Jun 2011
I see. But isn´t it done already by setting the field as "required" ?!
YOURfield -> General -> Required
maikkaune
on
07 Jun 2011
I would suggest to use the Decription field for "input help and hints".
I don´t know exactly how the joomla message system is triggered on ME submission... checkout:
com_resource/views/article/tmpl/form.php
There is the common check for "required"... maybe you have to add your special fields there?! But its a core hack... maybe it is possible to do something similar in the custom article form template...
maikkaune
on
07 Jun 2011
Would be nice to see how it turns out. Please, post your results here ;-)
Katerina
on
08 Jun 2011
Hello!
Currently each field doesn`t have such parameter to place text how to fill it up. Usually all fields are have user-friendly interface and there wasn`t required 'right' filling up of them. It can be good Feature request query. Please add it if you need it: http://www.mightyextensions.com/support/feature-request
Regards