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
fjhadd
View Replies:
RadiantWeb replied on at Permalink Reply
RadiantWeb
you should be able to yes....but this is very advanced. you need to pass all the paramaters you see in the problog_list block "save" function within the controller file. from there it's the same as hardcoding the autonav.

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.

<?php
$a = new GlobalArea("blog_list");
$a->display($c);
?>
fjhadd replied on at Permalink Reply
fjhadd
I have this do you know why is not working?
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');

Harcoding is better in this case because i can pass some php thru the browser URL to get the different Category.
RadiantWeb replied on at Permalink Reply
RadiantWeb
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

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.