Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Multilingual Site: Problem with ArticleHolder page

Our old forums are still available as a read-only archive.

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

Page: 1
Go to End
Author Topic: 827 Views
  • aceman3000
    Avatar
    Community Member
    3 Posts

    Multilingual Site: Problem with ArticleHolder page Link to this post

    When i try to do a translation for the ArticleHolder page from the tutorial i get this error:
    Call to a member function getAllFields() on a non-object in wegebrot/sapphire/core/model/Translatable.php on line 588

    My main language is english. The second one is german.

    Can anybody help me?

    Here is my ArticleHolder.php (also attached as a file to this post):

    <?php

    /**
    * Defines the ArticleHolder page type
    */
    class ArticleHolder extends Page {
       static $db = array(
       );
       static $has_one = array(
       );

       static $allowed_children = array('ArticlePage');
       static $icon = "mysite/images/treeicons/news";
    }

    class ArticleHolder_Controller extends Page_Controller {
       function init() {
          RSSFeed::linkToFeed($this->Link() . "rss");   
          parent::init();
       }
       
       function rss() {
          $rss = new RSSFeed($this->Children(), $this->Link(), "The coolest news around");
          $rss->outputToBrowser();
       }
    }

    ?>

    827 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.