Override page type?

Permalink 1 user found helpful
I'm trying to override a core page type (blog_entry), and a custom template (blog_index) in a package. I can always copy and paste the files into /page_types and /blocks/page_list/templates, but I feel like thats not the best way to do it. I also thought about uninstalling them and installing my own, but thats not ideal either. I was wondering how you can override them from /packages. Any Ideas?

12345j
 
jordanlev replied on at Permalink Best Answer Reply
jordanlev
For the blog_index custom template, you just have a packages/your_package/blocks/page_list/templates/blog_index.php file in your package directory and once the package is installed it should automatically override that template (although you might experience those buggy problems with c5 not looking for the view.css file in the right place -- if there is one for the page_list block I'd just throw a copy of that into packages/your_package/blocks/page_list/view.css).

Not sure about the page type template though -- maybe you can put it in packages/your_package/themes/your_theme/blog_entry.php ?
12345j replied on at Permalink Reply
12345j
hi jordan, thanks for the reply. I hadn't realized that the template was overriden, I'll have to test that. It isn't for a theme, so I think that your possible solution for blog entry wouldn't work(since I think the selected theme takes precedence. I think I'm just going to copy and paste to the root directory with that one. Thanks for your help!
12345j replied on at Permalink Reply
12345j
hmm- I can't get either to work. The custom template seems to not be applying, and the page types solution I had isn't working either. Oh well, guess I'll just install new ones and give instructions.