[SOLVED] Ajax Field in module

8 years 6 months ago - 8 years 6 months ago #154333 by planetvirtual
Hello,
I'm just getting into using the Ajax plugin and i find it wonderful but I'm having trouble trying to do something. I have a "motto" field where users can put a quick one sentence motto or slogan that they can change often. I want this ajax field to show in a module using the cbcontent module but it will only display the text, it wont give me the ajax properties of quick editing. Am I doing something wrong or this is not yet implemented? If it is not implemented yet, is it too difficult and time-consuming to do so? Any help and advice would be greatly appreciated, thanks!
8 years 6 months ago - 8 years 6 months ago #154406 by krileon
Ajax is not designed to be used outside of profile. Anywhere else it will simply just display the value. If you're using CB 1.4 you can now specify Default, Output, Formatting, Reason. The below maybe able to achieve what you're wanting.

[cb:userfield field="FIELD_NAME" /]

More on substitutions at the below link. Again the ajax is designed for profile and userlist usage only. You may need to change the reason to List in order for the ajax to load in, but it should do so with the above assuming it's supported.

www.allmysocials.com/tutorials/item/233-substitution-usage


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Templates - CBSubs - Hosting - Forge - Incubator - GroupJive
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM EST to 4:00 PM EST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
The following user(s) said Thank You: tto
8 years 6 months ago #154437 by planetvirtual
Hello! :)

Thank you for the help! This worked like a charm. Those substitutions are awesome!
Moderators: beatnantkrileon
Time to create page: 0.379 seconds
Facebook Twitter Google LinkedIn