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.

Blog Module /

Discuss the Blog Module.

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

Virtual pages + BlogHolder


Go to End


3 Posts   1321 Views

Avatar
richard-ward

Community Member, 31 Posts

4 June 2010 at 3:59am

Edited: 04/06/2010 4:03am

Hi,

I have the following page structure:

SiteRoot
|-- Page 1 (Page)
|-- Page 2 (Page)
|-- Page 3 (BlogTree)
| - - |-- Blog 1 (BlogHolder)
| - - |-- Blog 2 (BlogHolder)
| - - |-- Blog 3 (BlogHolder)
| - - |-- Blog 4 (BlogHolder)
|-- Page 4 (Page)
| - - |-- Blog 2 (VirtualPage)
|-- Page 5

As you can see, I would like to have a virtual page under "Page 4" which shows "Blog 2". Ideally I would like to be able to hide "Blog 2" under "Page 3" by using the "do not show in menu" function. However, if it is set not to show under "Page 3", it does not show under "Page 4".

For the time being, I am allowing the page to be visible in both menus, but am getting the following error when going to the VirtualPage:

Fatal error: Call to a member function latestParam() on a non-object in ***/blog/code/BlogTree.php on line 310

Any ideas?

Avatar
richard-ward

Community Member, 31 Posts

15 June 2010 at 8:23pm

Sorry to bump this, but does no-one have any ideas?

Avatar
yug

Community Member, 17 Posts

18 January 2011 at 4:28pm

Please someone....i also have this problem