phpScheduleIt
June 19, 2013, 06:17:56 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: phpScheduleIt 2.4.2 has been released!
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: Change Reservation Name to rsv-req  (Read 1041 times)
stumax
Newbie
*

Karma: 0
Posts: 6


« on: February 27, 2012, 11:59:51 AM »

Hi,

Can anyone point me in the right direction how to change the title of reservations as displayed under Schedule - Bookings. I need to change this so that it pulls in the Title of Reservation (rsv-req) field rather than the user's name.

Which page or template needs editing. I'm using V 2.0 .

Thanks,
Stu
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5506


WWW
« Reply #1 on: February 27, 2012, 02:03:59 PM »

Should be pretty simple. Open up lib/Application/Schedule/ReservationSlot.php and change the Label() function to be this:
Code:
public function Label()
{
        return $this->_reservation->Title;
}
Logged
stumax
Newbie
*

Karma: 0
Posts: 6


« Reply #2 on: February 28, 2012, 06:46:00 AM »

That's brilliant thanks Nick. I was looking for this for ages.

I have another similar query, please advise if this is possible.

when the reservation is clicked I require it to open an external site , the syntax would be http://www.theothersite.co/Display.html?id=172653

The id number would need to be populated by rsv-req field so i'm guesing the url would be something along the lines of

http://www.theothersite.co/Display.html?id=<?php echo $_GET['Title']?>

Can you advise where I can find this link ?

Thanks very much,
Stu
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5506


WWW
« Reply #3 on: March 05, 2012, 05:39:15 PM »

Do you mean you need the id to be the title of the reservation?
Logged
stumax
Newbie
*

Karma: 0
Posts: 6


« Reply #4 on: March 06, 2012, 06:25:18 AM »

Sorry nick, my explanation wasn't very clear. Our requirements have changed on this so please ignore the question.
Thanks,
Stu
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2006-2007, Simple Machines Valid XHTML 1.0! Valid CSS!