I was editing the file views_bonus_panels.module in order to make the Teasers, 1 top + 2 columns theme display the top item as a teaser. In the below code, after changing the bolded value to false below:
function theme_views_bonus_panels_twocol_stacked_config($name) {
return array(
'top_teaser' => <b>true</b>, // Should the top node be a teaser?
'top_links' => true, // Should the top node have links (like "read more" and "add new comment")?
'teasers' => true, // Should other nodes be shown in teaser form?
'links' => true, // Should the other nodes have links?
'inverted' => false,
)I was baffled when this didn't fix the problem. Anyway, I noticed that the function theme_views_bonus_panels_twocol_stacked was calling views_bonus_panels_threecol_config.
I believe it should call something else. I fixed it in my code. Hope this can be helpful rather than annoying. I am only a novice at PHP.
I believe that error is on line 173 of views_bonus_panels.module and is pasted below:
function theme_views_bonus_panels_twocol_stacked($view, $nodes, $type) {
$config = theme('views_bonus_panels_threecol_config', $view);
return theme('views_bonus_panels_layout_engine', $nodes, $config, 'twocol_stacked', 2, true);
}
Thanks,
jmjohn
Comments
Comment #1
dmitrig01 commentedI think this has been fixed.
Comment #2
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.