RSGallery2 Support Forums
Welcome, Guest. Please login or register.

Login with username, password and session length
  Home    Forum    Help    Search    Login    Register  
*
News : November 22, 2008, 02:40:01 pm
+  RSGallery2 Support Forums
|-+  RSgallery2 support forums
| |-+  RSgallery2 bugs & problems (Moderators: Jonah, Tomislav Ribicic, Daniel Tulp, Ronald Smit)
| | |-+  Title always "RSGallery2" from menu link
Advanced search
  « previous next »
Pages 1
Author
Topic: Title always "RSGallery2" from menu link  (Read 2838 times)
« on: June 11, 2008, 11:55:43 pm »
Chris Offline
Newbie
*
Posts: 1

View Profile Email

I just installed 2.0 on my Joomla site and linked to the gallery from my main menu. No matter what I adjust, the page title up at the top of the browser on that main gallery page is always 'RSGallery2.'

Does anyone know where I can change this at?

Thanks for the help!
Logged
 
Reply #1
« on: June 15, 2008, 04:46:00 pm »
simovina Offline
Newbie
*
Posts: 3

View Profile Email

Same problem, any ideas?
Logged
 
Reply #2
« on: June 16, 2008, 09:36:19 am »
john Offline
Dev Team
Sr. Member
*
Posts: 460

View Profile

Hello ..

you can remove this behaviour by modifying the file components/com_rsgallery2/templates/meta/display.class.php about on line 218:

from
Code:
if($this->gallery->id == 0)
     $title = "RSGallery2";
                                else
     $title = $this->gallery->get('name');


to :

Code:
if($this->gallery->id != 0)
$title = $this->gallery->get('name');


john
Logged
 
Reply #3
« on: June 16, 2008, 03:20:45 pm »
simovina Offline
Newbie
*
Posts: 3

View Profile Email

Thanks, it works, it's still bit strange not having this as admin option somewhere...
Logged
 
Reply #4
« on: August 23, 2008, 07:50:29 am »
joomlord.com Offline
Newbie
*
Posts: 1

View Profile WWW

Try this way:
1, components/com_rsgallery2/templates/meta/display.class.php (line 217)
Replace from:
Code:
if($this->gallery->id == 0)
     $title = "RSGallery2";
                                else
     $title = $this->gallery->get('name');
To:
Code:
if($this->gallery->id == 0)
$title = $mainframe->getPageTitle();
else
$title = $this->gallery->get('name');

2, Play follow the attachment file.


3, Enjoy!
Logged

Joomlord - Professional Joomla Extensions
http://www.joomlord.com
 
Print  Pages 1
« previous next »
Jump to: