Jump to content

Page Titles [Solved]


amcpilot

Recommended Posts

  • 4 years later...

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 :P)?

Link to comment
Share on other sites

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 :)

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...