Hoi,
I'm a SilverStripe newbie and I'm trying to get a youtube widget and a twitterfeed widget on one and the same page. But when I activate only the youtube widget it works but when i activate the twitterfeed widget as well the both stop working and the other way around. What can I do to get them both work? Is it even possible to get more then one widget on the same page?
Twitter widget:
TwitterWidgetPack-0.11.tar.gz
Youtube widget:
widgets_featuredvideo-0.1.tar.gz
PHP file:
class Mink extends Page {
public static $db = array(
);
public static $has_one = array(
"YouTube" => "WidgetArea",
"Twitter" => "WidgetArea",
);
public function getCMSFields() {
$fields = parent::getCMSFields();
$fields->addFieldToTab("Root.YouTube", new WidgetAreaEditor("YouTube"));
$fields->addFieldToTab("Root.Twitter", new WidgetAreaEditor("Twitter"));
return $fields;
}
}
Pieces of the SS file:
<div class="box-small">
<div class="box-content">
<div class="title-small-red">
<div class="text">
<h2>@minkemacollege</h2>
101 volgers
</div>
</div>
<div class="twitter">
<div class="image"></div>
<div class="feed">
$Twitter
</div>
</div>
</div>
</div>
<div class="box-large">
<div class="box-content">
<h1>Beleef het Minkema College</h1>
<object width="350" height="197">
<div class="box-video">
$YouTube
</object>
</div>
I have also the widget module.
Thank you,
Suzanne