Jump to:

1851 Posts in 1606 Topics by 561 members

Blog Module

SilverStripe Forums » Blog Module » <% control BlogEntries %>

Discuss the Blog Module.

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

Page: 1
Go to End
Author Topic: 1153 Views
  • MrHyde
    Avatar
    Community Member
    23 Posts

    <% control BlogEntries %> Link to this post

    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?

  • MrHyde
    Avatar
    Community Member
    23 Posts

    Re: <% control BlogEntries %> Link to this post

    Found a solution on my own.

    1153 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.