This topic is locked
[SOLVED]

 how to change page title programatically

11/16/2011 2:45:08 AM
PHPRunner General questions
K
kadidarm author

how do we change page title between <HEAD><TITLE> ... </TITLE> based on field value of database?
is this possible at all?

C
cgphp 11/16/2011
$xt->assign("pagetitle","Your title here...");
K
kadidarm author 11/16/2011

ok only works if i add {$pagetitle} in html
i wander if there is a way without adding that. This is because I always reset all pages as it is very buggy and if I reset, the changes is gone

C
cgphp 11/16/2011

No changes needed in the HTML source code. {$pagetitle} is a predefined template var in PHPrunner.

K
kadidarm author 11/16/2011

does not work with phprunner 5.3. Have not tried yet with version 6. version 6 still too buggy for me. is this solution only for version 6?

C
cgphp 11/16/2011

You can change the title in the lheader.html file under the templates/layouts/theme/ folder in the installation folder of PHPrunner 5.3

<title>{$pagetitle}</title>



theme is the folder of the theme you are using (London or Rome or Paris and so on)

K
kadidarm author 11/16/2011

thanks !!!

501399 12/20/2011



You can change the title in the lheader.html file under the templates/layouts/theme/ folder in the installation folder of PHPrunner 5.3

<title>{$pagetitle}</title>



theme is the folder of the theme you are using (London or Rome or Paris and so on)



Where would that file be in PHPrunner6? Thanks!