retrieve current site title

is there a way to get the title of the currently displayed site?

http://www.boonex.com/market/posts/paansystems - your resource for Dolphin Pro
Quote · 26 Sep 2011

if someone is searchin for a solution:

 

insert the following to 'classes/MyClassTemplate.php':

[code]

class MyClassTemplate extends BxDolTwigTemplate {
   
    function MyClassTemplate(&$oConfig, &$oDb) {
        parent::BxDolTwigTemplate($oConfig, $oDb);

        $this->_sPrefix = 'BxDolTemplate';
    }

    function getSiteTitle() {
        if(!empty($GLOBALS[$this->_sPrefix . 'PageTitle']))
            $sRet = $GLOBALS[$this->_sPrefix . 'PageTitle'];
        else if(isset($GLOBALS['_page']['header']))
            $sRet = $GLOBALS['_page']['header'];
        else $sRet = 'Enter site title';

        return $sRet;
    }

[/code]

 

get the actual site title with

[code]

$sSiteTitle = $this->_oTemplate->getSiteTitle();

[/code]

from anywhere in your module ...

 

i hope this will help someone ;)

 

greetings

misterpopper

http://www.boonex.com/market/posts/paansystems - your resource for Dolphin Pro
Quote · 26 Sep 2011
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.