$block->display() does not load the blocks on_page_view() function
Permalink
I have a page with tabs.
Each tab is a page in the sitemap. Within each tab i want the content of the (child) page shown in the tabbed page.
This works with $block->display(), except for example when using a block that loads js files to the head, in the on_page_load...
How can i force this??
THNX
Each tab is a page in the sitemap. Within each tab i want the content of the (child) page shown in the tabbed page.
This works with $block->display(), except for example when using a block that loads js files to the head, in the on_page_load...
How can i force this??
THNX
NOPE, sorry, to explain...
page
|---- tabpage
|---- tabpage
|---- tabpage
|---- tabpage
in one of the tab pages is a block (zoom display), that user on_page_view() to load a script into the header...
So when i load page, the content of each tabpage has to be loaded into the page...
This works with a loop trough the blocks and call the display function...
But... the scripts are not set in the head of (in this case) page...
page
|---- tabpage
|---- tabpage
|---- tabpage
|---- tabpage
in one of the tab pages is a block (zoom display), that user on_page_view() to load a script into the header...
So when i load page, the content of each tabpage has to be loaded into the page...
This works with a loop trough the blocks and call the display function...
But... the scripts are not set in the head of (in this case) page...
function view(){
$this->on_page_view();
}
function on_page_view(){
//whatever
}