I’m working on a new project using Revolution and I’m not sure of the best way to implement the following functionality. The will be a public directory of users (Name, telephone , address and other info). I think I can create this with the Login and People snippets, the two hurdles I have is that I need a custom description field that would be HTML so I don’t know if I can access the Richtext editor in the edit profile page so that each user cans customize their personal page. I will also need a field for the logo image. All of this would be pretty easy to set-up with TV but since this would require to create a resource for each user and somehow limit access to only this user, the TV option doesn’t seem the right way to go.
How were the User profiles created on the new Modx site since the bio part is exactly what I need.
Thanks for any suggestions
-
☆ A M B ☆
- 2,475 Posts
I’m very curious about this... you essentially need more flexible custom fields for your user profiles.
If you can get access to a text field of any kind, you should be able to add the necessary JS controls to get a WYSIWYG editor on there. If you can handle the retrieval and saving of this data in the profile snippet, then you should be able to work around any shortcomings in there. I need to do something similar here shortly... so I’ll let you know if I find anything out.
The Login snippet supports custom fields:
http://rtfm.modx.com/display/ADDON/Login.Using+Custom+Fields
One option would be to duplicate the Login snippet and modify it to give you a rich text field. You could look at NewsPublisher for guidance. It does rich text TVs in the front end.
It might also be possible to add a preHook or another snippet above the Login snippet tag that would load TinyMCE and tell it to make the custom field rich text.
Someone else might be able to suggest an easier way.
I was able to get the custom fields working correctly. I also found J Wysiwyg and will be trying to use it on this custom field. I haven't touched it yet but this is what Modx are using in our user profile so it should work.