Custom blog index causes error on rss feed

Permalink
I created a blog using the blog features that come standard with 5.4.1.1. I created a custom page list template for the Blog Index based off the one in the concrete directory but with some formatting tweaks. Everything works fine except when I click on the rss link, I get the error "This page list doesn't use the custom blog template, or you don't have permission to access this RSS feed". Does anyone know what the problem is? Is it a problem to use a custom template for the blog index?

I tried googling this error and all I found was about 6 other C5 sites having the same problem.

Thanks for any help you can give.

 
dg1 replied on at Permalink Reply
Any ideas, anyone? Is there something special I am supposed to do to get rss working when there is a custom template for the blog index? I've worked around it by going back to the supplied blog index template in the concrete directory, but I would like to have my own custom formatting.
Mnkras replied on at Permalink Reply
Mnkras
is the site in a sub directory?
dg1 replied on at Permalink Reply
No it's not in a subdirectory. Thanks.
memedia replied on at Permalink Reply
The blog has been specifically created to only allow rss for the page_list/templates/blog_index.php only, if you have a look in page_list/tools/blog_rss.php there is an if else statement there that checks for the blog_index template. I havn't had time to have a look and see if we can extend this to allow for others, possibly adding in the new templates in the if statement might just do it.

eg:
if( $bp->canRead() && $controller->rss && ($b->getBlockFilename() == 'blog_index.php' || $b->getBlockFilename() == 'blog_index' || $b->getBlockFilename() == 'yourtemplate.php' || $b->getBlockFilename() == 'yourtemplate')) {


Let me know if it works, or possibly if someone else has a better method please post.
jordanlev replied on at Permalink Reply
jordanlev
C5 has some weird issues when you use custom templates -- often if you have just one file that is overriding an existing template, it then tries to look for every other associated file in that same overridden location. So... I would try copying the /concrete/blocks/page_list/tools directory into your /blocks/page_list/ directory (next to where your templates directory is) and see if that works.
aberbenni replied on at Permalink Reply
aberbenni
This does not work for me and does not promote code reuse. Is there any other way?
jordanlev replied on at Permalink Reply
jordanlev
Unfortunately I do not know.
VidalThemes replied on at Permalink Reply
VidalThemes
Update your site, this issue has now been resolved as of 5.5+ I posted this as a bug some time ago, and it was fixed in the new release.
aymanme replied on at Permalink Reply
I've got the new release, and I've created a custom index that I called "blog_list.php" ... it all works, until I click the rss feed link. I am not sure what I am doing wrong though regarding the tools directory and so on.
Rocketspark replied on at Permalink Reply
I ran into a similar issue the way we fixed it was by creating

/blocks/page_list/

Inside this block override I copied the tools/blog_rss.php folder from /concrete/blocks/page_list/ folder.

In this file add on line 18 the name of your template to the OR statement..
|| $b->getBlockFilename() == 'new_index'
agnescb replied on at Permalink Reply
Worked fine for me in concrete 5.5.1. Thanks for the tip!
webdewd replied on at Permalink Reply
webdewd
This is still an issue with custom templates for the page_list block current release 5.6.1.2.
TheRealSean replied on at Permalink Reply
TheRealSean
I'm getting the same issue :(
Remo replied on at Permalink Best Answer Reply
Remo
super old topic, but this should fix ithttps://github.com/concrete5/concrete5/pull/1613...