Page Titles [Solved]

the title on every page usually like Pilot Centre - Airline Name I am trying to find where - Airline Name bit is, Any ideas?

Thanks

It is set in index.php on line 64.

2 Likes

thanks

Hi,

I am interested in this too. I’d like to know…if I want to make each page title unique but not the default page title name, how might I achieve it. I have seen the $page_title on line 64 of the index.php. If I changed each page that I wanted a different page title on, to $page_title=ā€œwhatever page nameā€; would that kind of thing work (ignoring my poor syntax issues )?

Ok, just read that back and it sounds confusing. Where I say ā€œbut not the default page titleā€ what I mean is, I don’t want the page to have the default title. I want to create my own unique ones. Hope that makes more sense.

Put this in your controller function:

$this->title = 'My Title';

Put this in your controller function:

$this->title = ā€˜My Title’;

Brilliant, thanks simpilot.

Just for anyone else who wants to do this, you would need to find your module for the page’s title you want to change. Then find this piece of code in the php file inside the folder:

<?php
class Dubaihub extends CodonModule //Name can be any names.
{

 public function index()
 {
		 $this->render('dubaiinternational.php');
 }
}
?>

and add the code simpilot mentions as so;

<?php
class Dubaihub extends CodonModule //Name can be any names.
{

 public function index()
 { $this->title = 'Your page title goes here';
		 $this->render('dubaiinternational.php');
 }
}
?>

Thanks again simpilot

1 Like