Jump to content

Simple values getter for multiple language fields in HelperForm


gr4devel

Recommended Posts

Hi community.

 

I'm trying to get the values of two multilanguage fields submitted through a form generated by an HelperForm.

 

However I can't find an already prepared utility function for that.

 

I mean, if I check the $_POST variable I find that all the multilanguage fields are identified by their names with the language id appended at the end.

 

e.g.:

array(9) { ["submitmymodule"]=> string(1) "1" ["filename"]=> string(0) "" ["combination"]=> string(2) "12" ["description_1"]=> string(11) "
hi

" ["description_2"]=> string(12) "
there

" ["description_short_1"]=> string(11) "
hi

" ["description_short_2"]=> string(12) "
there

" ["save"]=> string(1) "1" ["tab"]=> string(12) "AdminModules" }

Am I really supposed to handle the fields myself by grouping them based on the languages? Isn't there an already prepared PS utility for that?

 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...