[solved]How to create custom property type for FEU?
[solved]How to create custom property type for FEU?
Hi, All. I need a property that can be only editable from admin side and stored in database. I can't use hidden field type becose user can change the value by editing page code. But i need save hidden type becose standart functionality needed too.
Last edited by ivanshum on Fri Jul 05, 2013 11:27 am, edited 2 times in total.
Re: How to create custom property type for FEU?
Is there a check box for private on fields..?
Re: How to create custom property type for FEU?
No, I need to store an unlimited number of phone numbers. From the user, it looks like some fields under each number. But they should be stored in a single text field using a separator. Because I need to validate each phone number and a storage format is required for compatibility with other module that I can not change.
I know many ways to solve this problem. But I would like to learn the structure of the module "FrontEndUsers" and customize it to suit yourself.
I know many ways to solve this problem. But I would like to learn the structure of the module "FrontEndUsers" and customize it to suit yourself.
Re: How to create custom property type for FEU?
ivanshum wrote:I need a property that can be only editable from admin side and stored in database. I can't use hidden field type becose user can change the value by editing page code. But i need save hidden type becose standart functionality needed too.
You can have a thousand custom properties and show only one in your templates. The module sends the properties to Smarty, but it is up to you to determine if and how they are used on the templates.ivanshum wrote:But they should be stored in a single text field using a separator
You should check the default sample templates to see how to get the properties outside the foreach loop... because what you'll want to do is to avoid the loop altogether and call the fields/properties by name.
If the user sees the fields or not depends more on the templates than on the way you set the custom properties.
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
Re: How to create custom property type for FEU?
Why i don't think about this way?
Thanks.
