-
AuthorPosts
-
stuart29 Friend
stuart29
- Join date:
- August 2006
- Posts:
- 55
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 6
- Thanked:
- 1 times in 1 posts
July 17, 2008 at 11:05 am #130979when 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 FriendSherlock
- Join date:
- September 2014
- Posts:
- 11453
- Downloads:
- 0
- Uploads:
- 88
- Thanks:
- 221
- Thanked:
- 2478 times in 2162 posts
July 18, 2008 at 7:22 am #260636Hi
Seem i miss your question, can yu make some screenshots ?stuart29 Friendstuart29
- Join date:
- August 2006
- Posts:
- 55
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 6
- Thanked:
- 1 times in 1 posts
July 18, 2008 at 1:36 pm #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 FriendSherlock
- Join date:
- September 2014
- Posts:
- 11453
- Downloads:
- 0
- Uploads:
- 88
- Thanks:
- 221
- Thanked:
- 2478 times in 2162 posts
July 21, 2008 at 2:15 am #261011Hm
i still dont understand what you wantreachthesky Friendreachthesky
- Join date:
- July 2008
- Posts:
- 134
- Downloads:
- 0
- Uploads:
- 3
- Thanks:
- 14
- Thanked:
- 19 times in 10 posts
July 23, 2008 at 10:26 am #261703Are 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 Friendkashxo
- Join date:
- April 2007
- Posts:
- 605
- Downloads:
- 0
- Uploads:
- 21
- Thanks:
- 11
- Thanked:
- 78 times in 40 posts
July 24, 2008 at 9:27 am #261975Hello 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 user says Thank You to kashxo for this useful post
-
AuthorPosts
This topic contains 7 replies, has 4 voices, and was last updated by stuart29 16 years, 3 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum