Display existing block on on new page with different block view template
Permalink
Example use case:
I have a custom block created to manage sermons for a church web site. The block resides on a dedicated "media" page within the web site and has a custom view template assigned to it on that page. I now want to add a reference to this block to the home page (not a clone, I want to keep one point of administration for the block's settings, etc.) The reference should be able to apply a different custom view template (adjusting for the home page's layout).
I have tried just about everything. Any thoughts / ideas? Is it possible to have one block with two different view templates?
I have a custom block created to manage sermons for a church web site. The block resides on a dedicated "media" page within the web site and has a custom view template assigned to it on that page. I now want to add a reference to this block to the home page (not a clone, I want to keep one point of administration for the block's settings, etc.) The reference should be able to apply a different custom view template (adjusting for the home page's layout).
I have tried just about everything. Any thoughts / ideas? Is it possible to have one block with two different view templates?
The one thing that might be able to do it is to put
on the home page area that you are trying to use the template for. One thing to note with this type of setup is that ALL of the stuff for the template needs to be in the view.php file, it will not pull in the view.css, the css had to be in the view.php
Hope this works for you.