test melih
 melih
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • peterpetrov Friend
    #169618

    I have problem to change dynamicly TITLE of the logo href in the top of the page. In purityII same code work. I paste code below:

    Original Header code is:

    $app = & JFactory::getApplication();
    $siteName = $app->getCfg('sitename');
    if ($this->getParam('logoType', 'image')=='image'): ?>
    <h1 class="logo">
    <a href="index.php" title="<?php echo $siteName; ?>"><span><?php echo $siteName; ?></span></a>

    Modified code is:

    $app = & JFactory::getApplication();
    $siteName = $app->getCfg('sitename');
    $title = $this->getTitle();
    $myabsoluteurl=JURI::base();
    if ($this->getParam('logoType', 'image')=='image'): ?>
    <h1 class="logo">
    <a href="<?php $myabsoluteurl ?>" title="<?php echo $title; ?>"><span><?php echo $title; ?></span></a>

    $myabsoluteurl working, but $title doesn’t work. Anyone have some ideas?

    chavan Friend
    #419608

    you are right with the

    JURI::base()

    and the Logo title and the name should be Sitename.

    May I know why do you want each and every page title to be assigned on logo. can you explain me this.

    peterpetrov Friend
    #419668

    My title on the site is: Article | Sitename . I do it for SEO

    chavan Friend
    #419669

    ok, can you tell me do you have any issues on this for us to fix it.

    peterpetrov Friend
    #419754

    $title = $this->getTitle(); – this code dont work on this JA template . I make tests with PurityII and there working.

    If this work, my title of the logo must be : Title of current page , but when i put this code the generated title tag is “”. This is my problem – code below dont work.

    I attach screen with working code in purityII: “Corect title of the site” is the title of the page.


    1. OK
    chavan Friend
    #419813

    Post your Site url , admin details and ftp details. to check the issue.

    chavan Friend
    #419901

    Try this Code for getting the title:


    global $mainframe;
    $page_title = $mainframe->getPageTitle();

    Note: If you Find my Post useful please click on the Thanks Icon

    peterpetrov Friend
    #419932

    And this code dont work :((

Viewing 8 posts - 1 through 8 (of 8 total)

This topic contains 8 replies, has 2 voices, and was last updated by  peterpetrov 13 years, 3 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum