Retrieve body text of an event (ProEvents)

Permalink
When I create an event, I can enter a title, a date, a description and some html-formatted body text. Can you explain to me how to retrieve the body text? I looked though the examples, but there is none that also shows the body text.

 
RadiantWeb replied on at Permalink Reply
RadiantWeb
1.- this belongs in the ProEvents support area.

2. - in the event list loop, you would use this:

$block = $event->getBlocks('Main');
foreach($block as $bi) {
   if($b->getBlockTypeHandle()=='content'){
      $content = $bi->getInstance()->getContent();
   }
}


ChadStrat
CGCommunicatie replied on at Permalink Reply
It seems that
if($b->getBlockTypeHandle()=='content'){
never evaluates to true.
RadiantWeb replied on at Permalink Reply
RadiantWeb
lol...sorry...that would be
$block = $event->getBlocks('Main');
foreach($block as $bi) {
   if($bi->getBlockTypeHandle()=='content'){
      $content = $bi->getInstance()->getContent();
   }
}
CGCommunicatie replied on at Permalink Reply
Thanks.
Should have seen that myself...