![]() |
When creating CMS widget, how do I access calendar event custom fields
I'm trying print out a custom event field i've added into the calendar in a PHP Execution widget for the front page. However, I can't find a way to access this data.
I've tried some simple stuff like $event[customField#] and $event['customField' . #] but no dice. how would I access this info? thank you for your time |
okay, i had to unserialize the custom events field
$customEventFields = unserialize($event['customfields']); after that access the specific custom field you want by name $foo = $customEventFields['myCustomFieldName']; |
All times are GMT. The time now is 09:01 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|