Skip to Content Skip to Menu

[SOLVED] Display registerDate field

  • chanteur94
  • chanteur94
  • OFFLINE
  • Posts: 302
  • Thanks: 13
  • Karma: 1
4 years 5 months ago - 4 years 5 months ago #318112 by chanteur94
[SOLVED] Display registerDate field was created by chanteur94
Hi

I would like to display registerDate field in another field with Y-M-D format

I change the format in the registerDate field and when I display it I obtain the good result (example : 2020-04-14)

But when I put [registerDate] or [cb:userdate field="registerDate" /] in another field, I obtain always 2020-04-14 12:17:36 (with the hours)

What I'm doing wrong ?

Thank you.
Last edit: 4 years 5 months ago by krileon. Reason: Added [SOLVED] tag to subject

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48437
  • Thanks: 8275
  • Karma: 1443
4 years 5 months ago #318124 by krileon
Replied by krileon on topic Display registerDate field
[FIELD_NAME] is a raw substitution. So is userdata. You need to use userfield. Please be sure to read, study, and bookmark our substitution tutorial below. It goes over the different substitutions, their purpose, and expected outputs.

www.joomlapolis.com/documentation/279-community-builder/tutorials/18353-using-substitutions-throughout-cb

You need to use [cb:userfield field="FIELD_NAME" /] if you want any sort of formatting to be applied to a field.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
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 CST to 4:00 PM CST. 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.

Please Log in or Create an account to join the conversation.

  • chanteur94
  • chanteur94
  • OFFLINE
  • Posts: 302
  • Thanks: 13
  • Karma: 1
4 years 5 months ago #318131 by chanteur94
Replied by chanteur94 on topic Display registerDate field
Before sending my message I've tried [cb:userfield field="registerDate" /] I obtain nothing (Empty field)

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48437
  • Thanks: 8275
  • Karma: 1443
4 years 5 months ago #318134 by krileon
Replied by krileon on topic Display registerDate field
The userfield substitution completely respects access and display permissions. If it outputs nothing ensure the field is set to display on profile. If you don't actually want it displayed on profile move it to a tab that's in a not shown on profile position so you can still substitute it in.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
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 CST to 4:00 PM CST. 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.

Please Log in or Create an account to join the conversation.

  • chanteur94
  • chanteur94
  • OFFLINE
  • Posts: 302
  • Thanks: 13
  • Karma: 1
4 years 5 months ago - 4 years 5 months ago #318136 by chanteur94
Replied by chanteur94 on topic [solved]Display registerDate field
Thank you.
Last edit: 4 years 5 months ago by chanteur94.
The following user(s) said Thank You: krileon

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum