Skip to Content Skip to Menu

🌟Discover the Joomla AI Plugin that wrote its own story! - CB Editor Assistant 1.1now for Joomla 3, 4 & 5!
✍️ 5-Day Free Trial, then 🎯 save up to 30% with our 🛍️ Intro Offer (First 50 users, ends Dec. 25th)
🌲 Merry Christmas! Great savings on Professional and Developer Memberships! Get 25% off now with code XMAS-2024!

Time Display wirh Parameters

  • PipB
  • PipB
  • OFFLINE
  • Posts: 3
  • Thanks: 1
  • Karma: 0
10 months 6 days ago - 10 months 6 days ago #337243 by PipB
Time Display wirh Parameters was created by PipB
Hi, 
I have a question about time fields and the time format on Profile.
I have a created a list fields for opening and closing times which I have set on display none on the Profile Page
I try to display them via Parameters in a field called Openingtimes.

My problem: I don't want to display seconds so each time field has settings: Custom Time Format: H:i
This setting when i show the field direcly on profile
This setting is NOT applied when ik show the field via another field with a parameter on profile

In the general Configuration my Time Format is hh:mm

Can you please guide me in the right direction?
Prinstscreens attached

Kind regards, Pip      
Last edit: 10 months 6 days ago by PipB.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48616
  • Thanks: 8302
  • Karma: 1446
10 months 6 days ago #337253 by krileon
Replied by krileon on topic Time Display wirh Parameters
You're using [FIELD_NAME] substitutions. That's original value unformatted. In most cases it's directly the database value. Use a formatted substitution for it to be formatted. See the substitutions tutorial below for further usage information and examples.

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


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.

  • PipB
  • PipB
  • OFFLINE
  • Posts: 3
  • Thanks: 1
  • Karma: 0
10 months 5 days ago #337267 by PipB
Replied by PipB on topic Time Display wirh Parameters
Thanks very much for the quick reply.
I have the solution, maybe helpfull for others in de future:

[cb:if cb_maandag="1"]<label class="dag">maandag</label> [cb:userfield field="cb_maandagvanaf"/] -  [cb:userfield field="cb_maandagtot"/][/cb:if]

Great! I'm happy!

Kind regards, Pip
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