Jump to:

10930 Posts in 2613 Topics by 1810 members

All other Modules

SilverStripe Forums » All other Modules » SS 2.3.2 and staticpublisher with subsite

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 1087 Views
  • linkoovi
    Community Member
    12 Posts

    SS 2.3.2 and staticpublisher with subsite Link to this post


    I am having problem with this it just wont work.

    I followed the instructions on http://doc.silverstripe.org/sapphire/en/reference/staticpublisher
    but i get Error msg:

    [User Error] Uncaught Exception: Object->__call(): the method 'subpagestocache' does not exist on 'Page'

    function allPagesToCache() {
    // Get each page type to define its sub-urls
    $urls = array();

    // memory intensive depending on number of pages
    $pages = Subsite::get_from_all_subsites("SiteTree");

    foreach($pages as $page) {
    $urls = array_merge($urls, (array)$page->subPagesToCache()); //Exception thrown

    return $urls;

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.