Jump to content

Popupnews - Changing the page title


joshakjohn

Recommended Posts

Hellooo guys!

I apologise if this has already been asked but I haven't been around here for a while and well I don't have the patience to search ;P

Anyways is there a way to change the page title from "Popupnews" to say the subject of the news post? (If that makes sense?)

e.g post-10827-0-15501700-1372541482_thumb.png

Cheers!

Link to comment
Share on other sites

  • Administrators

At the open of the module file you can set it for the module globally

class PopUpNews extends CodonModule
{
public $title = 'Page Title';

function index()	 {

or you can define it for each page by declaring it in each function

function index() {
 $this->title = 'Page Title';
 $this->show('index');
}

  • 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...