Single Page - setting the pageTitle
PermalinkHow do you set the pageTitle variable when installing a new page as part of a package?
Code:
$pkg = parent::install(); $mySinglePage = SinglePage::add('/dashboard/my_dashboard_page',$pkg); $mySinglePage->update(array('cName' => 'My Dashboard Page', 'cDescription' => 'My dashboard page description'); $mySinglePage->set('pageTitle', 'Page Title Here'); //not correct at all!!
Where/how to I pass the page title into this? I keep making rapid progress over the complex stuff (awesome by the way) and then get caught up with the basics as there is NO mention of this in the doco's...
Wahhh wahh I know. I dont mean to be critical. If someone who knows could tell me I would be eternally grateful...
<header class="ccm-dashboard-page-header"><h1><?php echo t($pageTitle) ?: ' ' ?></h1></header>
So during my package installation how do I set this attribute/variable of the new single page I am installing so when I visit it the header is populated with a title?
http://www.concrete5.org/documentation/how-tos/developers/build-a-s...
$def = SinglePage::add('/dashboard/easy_news/pagetitle', $pkg); $def->update(array('cName'=>'Pagetitle', 'cDescription'=>t('Easy product manage.')));
If that's not what this is please provide more information.