Ticket #2063 (new defect)

Opened 13 months ago

Last modified 11 months ago

Disallow virtual pages to link to non 'page' content

Reported by: abimanyuraja Owned by: aoneil
Priority: medium Milestone:
Component: CMS - General Version:
Severity: medium effort / impact Keywords:
Cc: Hours:

Description

Virtual pages should not be allowed to hold content of pages that are not Pagetype 'page'. For example, currently linking to a blogentry produces an error in the published site.

Notice: Trying to get property of non-object in /Applications/xampp/xamppfiles/htdocs/stuff/silverstripe-v2.2.0/sapphire/core/model/VirtualPage.php on line 142

Change History

Changed 11 months ago by newjamie

I'd say that this was a bug, as Virtual Pages *SHOULD* be allowed to hold content of pages that arent "Page" - the enduser would expect to create a VirtualPage? of any page and the properties and template be picked up accordingly, but it doesn't.

Note: See TracTickets for help on using tickets.