[SOLVED] From - to date field possible?

9 years 11 months ago #141149 by carina
Hi,

I would like to have a date field for from date and to date. I want people to enter periods for education like this:

The School
From: August 2000 to August 2003

The only date field I can create is just a single date.

Thanks for any help!

Post edited by: krileon, at: 2010/09/07 15:36

Please Log in to join the conversation.

9 years 11 months ago #141173 by Johnnydement
Replied by Johnnydement on topic Re:From - to date field possible?
I'm sure you can do that using delimiters

Create a date field for the start date
Create another date field for the ending date

and then create a delimiter field that outputs this data, for example

cb_startdate>date
cb_enddate>date

cb_education>delimiter>From [cb:userfield field="cb_stardate" /] to [cb:userfield field="cb_enddate" /]

Yo could even add a third field to add the school, institute, university,...

Then you make the startdate and enddate fields not appear in profile (just in edit profile), and in profile you show the cb_education one...

This is just an example, I'm not sure if that would be the correct encoding, you should check the delimiter faq

Your feedback on the JED helps us improve Kunena. ;)

Please Log in to join the conversation.

9 years 11 months ago #141213 by krileon
Replied by krileon on topic Re:From - to date field possible?
As the user before me instructed yes delimiter fields are the best approach. As is there is no other alternative. CB only provides single date fields. Create 2 date fields then user substitutions to display the range. Example as follows.

[code:1]
[cb_date1] - [cb_date2]
[/code:1]


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.

9 years 10 months ago #141511 by carina
Replied by carina on topic Re:From - to date field possible?
Thank you both. Works perfect! :cheer:

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.462 seconds

Facebook Twitter LinkedIn