Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter

Categories

In this Discussion

Who's Online 18

6apxatCurtisOdenHotBlackericgillettelf349141590tc74 +12 guests

Customfields help

This is a cool but difficult feature to implement
What i want is each calendar to have it own set of custom fields, So when you go to Add Calendar Form you see this (admins only)



When you submit the form, the array is saved as such

$CustomFields[] = array(0 => array("CustomFieldName1" => "Website", "CustomFieldType1" => "Url"),
1 => array("CustomFieldName2" => "Location", "CustomFieldType1" => "String"));

Which I can serialize and save to the database.

Now when you go to the EventForm to create a new event, you select the calendar, and out pops that calendars custom fields like below


When you submit the form, the array is saved as such

$CustomFields[] = array(0 => array("CustomFieldName1" => "Website","CustomFieldValue1" => "http://Ticketmaster.com", "CustomFieldType1" => "Url"),
1 => array("CustomFieldName2" => "Location","CustomFieldValue2" => "Central park NYC", "CustomFieldType2" => "String"));

Which I serialize and save to the database

Does this make sense so far, or you guys have a better idea or potential pitfalls with this method

Comments

This discussion has been closed.