Magento CMS Page Meta Titles?
-
Hey All,
I'm experiencing a bit of a problem with creating a custom, separate Meta Title for CMS pages in Magento 1.6.1.0.
I know this can be added through _CMS => Page => Page Information => Page Title, _but this method presents issues, as a length of 70 characters is a little too long for breadcrumbs.
I would like a way to add a second specific meta title field that overrides this first Page Title field_. _
I did find something that does this in Magento Connect for around $50.00USD, but this seems like something that should be easy and free to do.
Any suggestions as to a workaround or alternative free plugin would be most welcome!
Thanks!
-
Hi David,
A couple of things to try (I haven't tested them)
Set up an xml update on the cms page like this:
<reference name="head"><action method="setTitle"><title>Your Module Page Title</title></action></reference>
Depending on the controllers this might change both page and breadcrumb titles (not sure if that is what you are after)
If you don't mind doing a small code change the trick described here: http://inchoo.net/ecommerce/magento/change-any-page-title-in-magento/ should do it. If following that you would actually be doing it backwards, the normal page title would be used in the breadcrumb and the updated page title used in the title tag.
If actually the breadcrumb is not the most important thing for that page you could just remove it, also with an xml update like this:
<remove name="</code">"breadcrumbs"``/></remove>Hope one of those helps! -
Hey Lynn,
Option 1 worked like a charm!
Thanks for your help, it's a new CMS for me and I'm still getting used to it.
Cheers!
-
Is there a reason I wouldn't be able to add the "&" symbol to the title element in the first option? I keep getting an error when I try to add the "&" symbol.
-
Hi,
Not sure why an & would throw an error. Maybe try encoding it like &
Worth checking that the rest of the syntax is all correct and all tags are opened and closed properly in case it is not the & character that is actually causing the problem?