Single Page - setting the pageTitle
How do you set the pageTitle variable when installing a new page as part of a package?
$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...
$mySinglePage->setAttribute('pageTitle', 'Page Title Goes Here');
If that's not what this is please provide more information.
<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?
$def = SinglePage::add('/dashboard/easy_news/pagetitle', $pkg); $def->update(array('cName'=>'Pagetitle', 'cDescription'=>t('Easy product manage.')));