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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Blog Module /

Discuss the Blog Module.

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

<% control BlogEntries %>


Go to End


2 Posts   2442 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.