Sign In  |  Cart  |  Join Now

view.css don't load if block manually inserted in theme.

February 27, 2010
Status: New
Priority: Medium

How important is this to you?

Very
Somewhat
Not important
Please Login to Vote
When inserting manually a block controller in the theme, the RENDER using view.php don't load the associated view.css inside the template folder.

<?php 
   $bt = BlockType::getByHandle('page_list');
   $bt->controller->num = 10; // pages to display
   $bt->controller->orderBy = 'display_asc'; //display_asc, display_desc, chrono_asc, alpha_asc, alpha_desc 
   $bt->controller->cParentID = 898;   // $c->getCollectionID(); = Current page    / specify the PageID if necessary
   $bt->controller->truncateSummaries = 1; // 0:false / 1:True
   $bt->controller->truncateChars = 68;
   $bt->controller->displayFeaturedOnly = 0; // 0:false / 1:True = Display is_featured only
   $bt->controller->paginate = 0; // 0:false / 1:True ( add pagination if more then NUM value )
   $bt->controller->displayAliases = 0; // 0:false / 1:True
   $bt->render('templates/twist-sidebar-tagcloud/view'); // Specify your template or type "view" to use default
?>

load

Feb 27, 2010 at 5:30 PM
Using that blocktype in my theme with the render specified, it should have load my view.css in that same template folder but it didn't load any CSS.
 
 

Hot Spots...

ForumsPartners | Contact | Blog

Search site