Editing Page Titles
From PikaDocs
By Andrew Cameron
Legal Services Lawline of Vermont (http://www.lawlinevt.org/) and Vermont Legal Aid (http://www.vtlegalaid.org/)
One of our testers asked if the titles for the browser windows could appears as Roberts X-05-00015 instead of Pika: Case # X-05-00015. (Why? If you have several browser windows open at once, and your taskbar is getting squeezed, this makes it easier to tell at a glance which window is which).
Here's how to do it.
1) Edit /templates/default.html and take out the word Pika
<title>Pika: %%[page_title]%%</title>
becomes
<title>%%[page_title]%%</title>
2) Edit /case.php
Find this line:
$main_html['page_title'] = "Case # {$num}";
Change the line to read:
$main_html['page_title'] = " $client_last_name {$num}";
And on the line immediately before that line, add this:
$client_last_name = $case_row['last_name'];
(This will create a new variable to store the client's last name)
