Hardcode a custom render view1 user found helpful
<?php $rd = BlockType::getByHandle('rss_displayer'); $rd->controller->itemsToDisplay = '2'; $rd->controller->url = 'http://blog.alfredapp.com/feed/'; //just using this URL for testing purposes $rd->render('bullet_date');?> ?>
I've tried a million different things in the $rd->render part, but it either just shows the default view or gives me a file not found error.
Just for fun, I created a rss_displayer block the "old fashioned" way and when I went to use a custom template, my "Bullet Date" template was in the drop down and displayed like I wanted.
If you want a blog block in the footer of every page, follow the below given points
1. Log in as admin of your concrete5 installation.
2. Open ‘Dashboard’.
3. Go to Pages and themes --> Page Types section.
4. Click on ‘Defaults’ button of the necessary page type.
5. Concrete5 will redirect you to the page where you can get into editing mode and add blocks in the footer area, that you want to be created on the page type of every page by default.
6. You can also set default permissions the same way.
7. Once you exit editing mode and click ‘Publish changes’, default settings will be applied and every time you create a new page with that page type, it will have pre-defined set of blocks and permissions.
I.E. if the template is called 'bullet_date' (directory name) and it is located in the 'templates' directory of the block, it is supposed to have something like 'view.php' file in it, which renders the block's content. In order to programatically render the block using this template you should:
C5 will add the '.php' suffix by itself. This has worked fine for me.