2014-06-17, 04:02:48
fyi my workaround for using nmtitle as page heading
I could add a check i guess to make sure this is necessary and that the nm title override already ran, but in my case its always executed before my hook.
also collecting info here for core enhancements related to titles and stuff
https://github.com/GetSimpleCMS/GetSimpleCMS/issues/831
PHP Code:
<?php
# hook_theme-header
GLOBAL $id,$title,$data_index,$NMPAGEURL;
if($id == $NMPAGEURL)$data_index->title = $title = nm_post_title('','',false);
?>
I could add a check i guess to make sure this is necessary and that the nm title override already ran, but in my case its always executed before my hook.
also collecting info here for core enhancements related to titles and stuff
https://github.com/GetSimpleCMS/GetSimpleCMS/issues/831