amcpilot Posted May 8, 2011 Report Share Posted May 8, 2011 the title on every page usually like Pilot Centre - Airline Name I am trying to find where - Airline Name bit is, Any ideas? Thanks Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted May 9, 2011 Administrators Report Share Posted May 9, 2011 It is set in index.php on line 64. 2 Quote Link to comment Share on other sites More sharing options...
amcpilot Posted May 9, 2011 Author Report Share Posted May 9, 2011 thanks Quote Link to comment Share on other sites More sharing options...
ahughes3 Posted October 6, 2015 Report Share Posted October 6, 2015 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 )? Quote Link to comment Share on other sites More sharing options...
ahughes3 Posted October 6, 2015 Report Share Posted October 6, 2015 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. Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted October 6, 2015 Administrators Report Share Posted October 6, 2015 Put this in your controller function: $this->title = 'My Title'; Quote Link to comment Share on other sites More sharing options...
ahughes3 Posted October 14, 2015 Report Share Posted October 14, 2015 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.