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

SiteTree vs DB inconsistencies with multiple BlogHolders in SS 3

Go to End



Community Member, 33 Posts

30 September 2012 at 12:12am

When multiple Blog Holders exist within a the site tree -

Blog Entries appear in CMS Site Tree under the Holder to which they were assigned, but upon checking SiteTree_Live in the database the ParentID for these pages is actually a different BlogHolder. In this case, a completely different branch of the Site Tree. The Site Tree is something like this -


     -BlogTree 1
          --BlogTree 1a
               ---BlogHolder 1a-1
               ---BlogHolder 1a-2
          --BlogTree 1b
              <--- similar to BlogTree 1a --->

     -BlogHolder 2

So, for example, Blog Entries added to BlogHolder 1a-1, show up in the correct place in the SiteTree in the CMS, but in the DB some have the ParentID of BlogHolder 2. I've tried numerous flushes to see if I can get the SiteTree to match the DB, but the inconsistencies persist.

One, fairly simple solution would be to create separate Blog classess for BlogTree 1 node, but I'm wondering if SS3 and/or the Blog module is not intended to work with multiple Blog Holders or if this is a bug?