Jump to content

Recommended Posts

Posted

I was thinking some people might want to change the way the page title is displayed, so I managed to get it to work nicely and added it to our KB, and for people who don't read our KB here's the way to do it :D

 

Change this:

<title><?php echo $this->Html->safe(($this->Html->ifSet($page_title) ? $page_title . " - " : "") . $this->Html->ifSet($system_company->name));?></title>

To this:

<title><?php echo $this->Html->safe($this->Html->ifSet($system_company->name) . ($this->Html->ifSet($page_title) ? " - $page_title" : ""));?></title>

Now your pages won't be Page Title - Company Name but will show Company Name - Page Title

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.   Paste as plain text instead

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