Jump to:

1851 Posts in 1606 Topics by 561 members

Blog Module

SilverStripe Forums » Blog Module » SiteTree vs DB inconsistencies with multiple BlogHolders in SS 3

Discuss the Blog Module.

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

Page: 1
Go to End
Author Topic: 507 Views
  • cmc
    Avatar
    Community Member
    23 Posts

    SiteTree vs DB inconsistencies with multiple BlogHolders in SS 3 Link to this post

    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 -

    SiteTree

    -BlogTree 1
    --BlogTree 1a
    ---BlogHolder 1a-1
    ----BlogEntry(s)
    ---BlogHolder 1a-2
    ----BlogEntry(s)
    --BlogTree 1b
    <--- similar to BlogTree 1a --->

    -BlogHolder 2
    --BlogEntry(s)

    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?

    Thanks,
    Cathy

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