Skip to content


XML error when using RedirectPage in Blog #19

sminnee opened this Issue · 2 comments

2 participants

SilverStripe Ltd. member


I changed the page type of an old blog page to RedirectPage? for SEO reasons. This breaks the viewer with an XML_val error. We should exclude RedirectPages? from the Entries() function in BlogHolder?.php, but as I’m a noob in MySQL and on a hurry, I simply modified BlogHolder?.ss:

<% control BlogEntries %>
<% if ClassName = RedirectorPage %>
<% else %>
<% include BlogSummary %>
<% end_if %>
<% end_control %>
Hope it helps, Juan

SilverStripe Ltd. member

Seems ok in the current 2.4 branch. BlogTree::Entries method calls DataObject::get('BlogEntry', $filter, $order, '', $limit);, which shouldn't return any redirector pages. I've tested this and checked it myself.

@tractorcow tractorcow closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.