Login to download the latest version of Mint and your favorite Pepper, purchase additional licenses, or post in the Forum. Don't have an account? Create one!

In Partnership with Media Temple

Mint Forum

How to fix long page names

Hi, all of the pages tracked by mint start with a really long prefix (eg “Mint Developer Center - …”, making it hard to distinguish page names in the Pages pepper. How can I configure Mint to remove this prefix from the page titles?

Till
Pepper Developer
Posted on Jun 26, '08 at 06:38 am

You could use a cronjob, write a pepper or take a look at this topic.

Shaun Inman
Mint/Pepper Developer
Posted on Jun 26, '08 at 08:16 am

I would recommend starting here, Overriding page titles.

Has anyone gotten “Overriding page titles” to work in Joomla?

I just don’t want to see the site name on my pages, I only want to see the content page name.

I’m not a programmer, but I have tried all kinds of tags or variables in those parathenses… … $title, $contenttitle, $_E_TITLE, and more… …all without luck.

Do I need to define it first or something? I just don’t know this stuff.

Any help would be appreciated…

Thanks,

Lobo

Shaun Inman
Mint/Pepper Developer
Posted on Aug 21, '08 at 03:29 pm

Your best bet is going to be asking someone who is familiar with Joomla. Does Joomla have template documentation? That might be a good place to start followed by the Joomla support forums.

Thank you for your reply. I have been working with Joomla people on making this work, but I need the last bit of programming work to make this happen.

The Joomla people said the page title can now be called as:

var $_POST[‘page_title’]

But, I don’t know how to fit that into the var line in the code provided for this fix.

Can anyone please help me?

Thanks,

Lobo

The correct line of code is:

var Mint_SI_DocumentTitle = ("<?php echo $_POST['page_title']; ?> ");

This required a little hack inside of Joomla.

  • FILE :content.html.php
  • LOCATION : folder: components in subfolder: com_content
  • LINES ~436 onwards

Inside the function show(), below the line that says global $_MAMBOTS;

Insert the following:

$_POST['page_title']=$row->title;

You must be logged in to reply. Login above or create an account