CB Content Bot - Field date

7 years 1 month ago #291827 by AchLive
CB Content Bot - Field date was created by AchLive
Hi, I noticed that the date type fields are not displayed in the Joomla articles with CB Content Bot, if they are not set as visible on profile. While other field types are viewable even if they are set as not visible on profile.
Possible that this is a bug?
Thanks for the support

Please Log in to join the conversation.

7 years 1 month ago #291858 by krileon
Replied by krileon on topic CB Content Bot - Field date
This is the case for all fields if using a [cb:userfield field="FIELD_NAME" /] substitution. Both [FIELD_NAME] and [cb:userdata field="FIELD_NAME" /] do not perform access checks, but are not formatted (raw values from database).


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 to join the conversation.

7 years 1 month ago #291867 by AchLive
Replied by AchLive on topic CB Content Bot - Field date
Ok thanks, in fact using userdata works but the data is raw. Because it is a calendar date field can be formatted differently from the English date that I would not view it as Y-m-d, but d-m-Y
Thank you

Please Log in to join the conversation.

7 years 1 month ago #291869 by krileon
Replied by krileon on topic CB Content Bot - Field date
Only way to output it as formatted is to use [cb:userfield field="FIELD_NAME" /]. If you don't want the field actually visible on profile, but accessible to substitutions you can move the field to a tab that's in a not shown on profile position.


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 to join the conversation.

7 years 1 month ago #291870 by AchLive
Replied by AchLive on topic CB Content Bot - Field date
This is the solution that I found myself. I thought you could use it in some way what is written here

Date - display preformated dates based off current date and time
[Cb: date format = "PHP_DATE () _ FORMAT" /]

[Cb: date format = "Y-m-d" /] will display 2011-02-14 for example. The time stamp used is always the current date and time.

But perhaps it is only applicable to the current date

Please Log in to join the conversation.

7 years 1 month ago #291873 by krileon
Replied by krileon on topic CB Content Bot - Field date
Correct, that only outputs the current datetime in whatever PHP date format you like.


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 to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.395 seconds

Facebook Twitter LinkedIn