Hello.
I made a view, (for which i made a views-list-xxx.tpl.php) which generated a block (which i made a block-views-xxx.tpl.php file for).
This all works quite fine outside panels.

In Panels (_pages), i now cannot add my views-generated blocks to the content. I just can add them as views, but then, the block-template-file will not be used... !!

I have really no idea how to handle this... or is this because of the beta-version ?

I would really apprecciate some help !

Felix

Comments

FlymastaFlex’s picture

Title: Where is my Views generated Block ? » Loading themed "views-generated" Blocks with Panels

Okay, i didnt found a real answer for this but i solved my problems with this:

i added "new custom content" and wrote in the body (in php):

<?php
$block =(object) module_invoke('views', 'block', 'view', 'myview');
$block->module = 'views';
$block->delta = 'myview';
$hahaha = theme('block', $block);
print $hahaha;
?>

just add your viewname instead of myview here..
now it uses also the block-views-xxx-tpl.php so you can theme your block

I hope this helps someone

sun’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

aschiwi’s picture

I hope this helps someone

It helped me! :-)

One problem left - the arguments don't seem to be coming with. The views block is themed, but empty.