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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Customising the CMS /

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

SOLVED: Secondary Pages Disappear from Parent in Tree after "Save & Publish" Action


Go to End


4 Posts   1542 Views

Avatar
b00mtastik

Community Member, 18 Posts

25 September 2012 at 11:51am

Hello all,

I came across this problem just now, because normally I would edit the parent page and then never touch it and only work on the sub/child pages.

So lets take the ArticlePage and ArticlePageHolder example from the tutorials which can be found here: Extending a Basic Site.

After editing the parent ArticlePageHolder and hitting the "Save & Publish" button, all child pages disappear and won't return until I refresh the tab on my browser with either 'F5' or Right Click > Refresh.

Now, my first thoughts was this could be a bug, but I also knew since it was something I hand coded to try and get a feel for creating these pages types, it could have been something I did that won't allow the tree to be updated after the save & publish function?

Any help would be awesome. I'm providing screenshots to show what happens and also providing my ArticlePage code and ArticlePageHolder code.

-B00mer

Avatar
martimiz

Forum Moderator, 1391 Posts

25 September 2012 at 11:06pm

I don't feel this is due to anything in your code... Just curious: does the same thing happen if you create childpages underneath a default Page type? Are you using (stable) 3.0.2?

Avatar
jasonsypolt

Community Member, 5 Posts

25 September 2012 at 11:56pm

I was experiencing the same thing. It's like the jquery wasn't updating the tree properly when clicking Save and Publish. Refreshing the entire page fixed the problem, but it was a little disconcerting at first to see things disappear. I haven't seen the problem yet since upgrading to 3.0.2.

Avatar
b00mtastik

Community Member, 18 Posts

26 September 2012 at 3:26pm

Yeah I had the same thing. So now things have been fixed with version 3.0.2. Which took me a while to get working considering some minor things I had to re-change in .htaccess. But it works!

Lesson learned: Always update your stuff.

Thanks for all who took a look at this for me.

-B00mer