Can i harcode the problog list to a single page
Permalink Browser Info Environment
Can i hardcode the problog list to a single page?
Type: | Discussion |
---|---|
Status: | New |
I have this do you know why is not working?
I am using the page_list for example.
Harcoding is better in this case because i can pass some php thru the browser URL to get the different Category.
I am using the page_list for example.
<?php //Start $bt = Blocktype::getByHandle('problog_list'); //Set Options $bt->controller->num = '10'; //Number of Pages in to display in block $bt->controller->selectCTID = '7'; //ID of page type (Value is found in Option List *** View Source in edit mode of block to see ***) $bt->controller->displayFeaturedOnly = '1'; //Options ('1', '0') $bt->controller->displayAliases = '1'; //Options ('1', '0') $bt->controller->paginate = '1'; //Options ('1', '0') $bt->controller->cParentID = '127'; //Set for pages beneath a specific page if not set as 1 $bt->controller->orderBy = 'display_asc'; //Options ('display_asc', 'chrono_desc', 'chrono_asc', 'alpha_asc', 'alpha_desc') $bt->controller->truncateSummaries = '1'; //Options ('1', '0') $bt->controller->truncateChars = '128'; //Number to be set if Summaries required as above //Render (Always Required!) $bt->render('view');
Viewing 15 lines of 16 lines. View entire code block.
Harcoding is better in this case because i can pass some php thru the browser URL to get the different Category.
Greetings C5 users,
For support, please direct all questions and issue to the products "support" area.
For pre-sales, please direct your questions to the products "pre-sales" area.
Thanks again for being a ChadStrat product supporter.
Blessings,
ChadStrat
For support, please direct all questions and issue to the products "support" area.
For pre-sales, please direct your questions to the products "pre-sales" area.
Thanks again for being a ChadStrat product supporter.
Blessings,
ChadStrat
Instead though, what I would do is create a global area in your single page, and use a "stack" with the list block to assign to that area.
so add this to your single page...but then go and view that page at least once for C5 to "see it". then go to your stacks area in your dashboard and add the blog list block.