Ticket #1214 (closed defect: fixed)
aBlogEvents:migrate brokes the virtual pages engine
| Reported by: | k4llu | Owned by: | dordille |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | apostropheBlogPlugin | Version: | |
| Keywords: | Cc: | ||
| Symfony version: | 1.4 |
Description
When you create a blog post, it's virtual page has the engine 'aBlogPost' (this should happen for event post too). when you migrate your apostrophe project, the engine is changed from aBlogPost to aBlog.
The aBlogEvents:migrate static method runs the following statements
$migrate->query('UPDATE a_page SET engine = "aBlog" WHERE slug LIKE "@a_blog_search_redirect%"');
$migrate->query('UPDATE a_page SET engine = "aEvent" WHERE slug LIKE "@a_event_search_redirect%"');
The statements should be:
$migrate->query('UPDATE a_page SET engine = "aBlogPost" WHERE slug LIKE "@a_blog_search_redirect%"');
$migrate->query('UPDATE a_page SET engine = "aEventPost" WHERE slug LIKE "@a_event_search_redirect%"');
Assuming that the creation of a event is changed to create aEventPost object instead of aEvent. You can not differentiate between a apostrophe engine page that lists events and a virtual event page, using the engine field as you can for a blog post and blog listing.

