Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Customfields help

edited November 2007 in Vanilla 1.0 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)

String
Url
Email


String
Url
Email


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

  • Good! Is it possible to edit the data in the same fields later on if necessary?
  • thats the idea
  • edited November 2007
    Hi, What would be great, if you publish a calender, is to give (or not) a possibility for members to register for a specific event that is in the calender. I'd tried to explain what would be my need in that post : http://lussumo.com/community/discussion/6723/free-form-for-event-registration-member-access-only/#Item_1
  • did anyone find any problem with this approach
  • Sounds good to me!
This discussion has been closed.