test
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • stuart29 Friend
    #130979

    when using the default splitmenu in this template it brings the alias or page title up in the menu nav bar, its a great feature but i would like to remove just on the index.php as i need the page title to be long for seo reasons .

    been looking at the base.class .php i see the code get the page title is there anyway it could get the Alias instead ?

    Sherlock Friend
    #260636

    Hi
    Seem i miss your question, can yu make some screenshots ?

    stuart29 Friend
    #260740

    <em>@nguoiabcd 67578 wrote:</em><blockquote>Hi
    Seem i miss your question, can yu make some screenshots ?</blockquote>
    the default menu is a splitmenu it also grabs the page titles from each indavidual article by way of some code in base.class.php

    //Add page title to item

    if ($level == 0 && $this->getParam('menu_title')) {

    if ($this->getPageTitle($iParams)) {

    $txt .= '<span class="menu-desc">'. $this->getPageTitle($iParams).'</span>';

    } else {

    $txt .= '<span class="menu-desc">'. $tmp->name.'</span>';

    }

    }

    $title = "title="$tmp->name"";

    if ($tmp->url != null)

    {

    switch ($tmp->browserNav)

    {

    default:

    case 0:

    it rips the article page title what i would like to do is make it get the page alias so i can rename the page titles for google

    Sherlock Friend
    #261011

    Hm
    i still dont understand what you want

    reachthesky Friend
    #261703

    Are you trying to eliminate the website name being displayed in the frontpage exactly as the name of an article (show title =yes) is displayed in com_content? I noticed sometimes the name of the website is displayed on the frontpage just as the “show title” feature works for regular content.

    kashxo Friend
    #261975

    Hello stuart29,
    To display alias of an Item instead of Page title, please focus to the code you’ve quote above and replace it in the red text I’ve marked here:

    //Add page title to item
    if ($level == 0 && $item->alias) {
    if ($this->getPageTitle($iParams)) {
    $txt .= '<span class="menu-desc">'. $item->alias.'</span>';
    } else {
    $txt .= '<span class="menu-desc">'. $tmp->name.'</span>';
    }
    }

    $title = "title="$tmp->name"";

    Or you can replace file: Base.class.php in folder ja_galena/ja_menus by the file I’ve attached here.

    Hope it can help you solve your issue. Let me know if you got any further difficult.


    1. Base.class_.zip
    stuart29 Friend
    #261979

    thankyou very much Kashxo much appriciated 🙂

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

This topic contains 7 replies, has 4 voices, and was last updated by  stuart29 16 years, 4 months ago.

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