Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Blog Module /

Discuss the Blog Module.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

<% control BlogEntries %>


Go to End


2 Posts   1789 Views

Avatar
MrHyde

Community Member, 23 Posts

15 January 2009 at 2:59am

Hi, i did this to my blog module and need some help.

BlogHolder.php

class BlogHolder extends Page {
static $db = array(
   'AnyText' => 'Varchar(30)',
   );
...

BlogHolder.ss

<% if BlogEntries %>
   <% control BlogEntries %>
      <% include BlogSummary %>
   <% end_control %>$AnyText
<% else %> ...

$AnyText displays by using the code above. But i cant use it inside the <% control BlogEntries %>-tag. Any solutions?

Avatar
MrHyde

Community Member, 23 Posts

15 January 2009 at 6:01am

Found a solution on my own.