page title and metatags for alias pages for SEO

Permalink
Is there a way to add a different page-title then the masters title to an alias page. And the same question for other metatags like page-description?

I have a lot of pages which have aliases from different parentpages. The content should stay the same, but for SEO i want different page-titles and descriptions naming the parent pages category.
Is this possible in some way?

buurvrouw
 
ijessup replied on at Permalink Reply
ijessup
As far as I am aware, no. Though I understand where you are coming from, this would defeat the purpose of aliasing.

You could programatically change the <title> element in the page's HTML by using a Collection Attribute to replace the existing <title> element if the page object is defined as an alias. Granted this would make all the pages aliased of the original pages have the same page title.

A better solution would be to use scrapbooking. Just add scrap-booked blocks to the original page, copy it to the locations you want, then make the necessary adjustments to the page properties.

Or, I think there is an add-on in the Market Place that can effectively scrapbook an Area. This would make it so that any changes you made to the page (aside from the properties) would have a global effect on the copied pages. This would give you that pseudo-aliasesd solution you're looking for.

Again, I certainly understand your point of view and what you are trying to do. Aliasing seems like that "so close, but so far away" solution for you. Unfortunately, aliasing doesn't, and will likely never, work that way.

Then again, you are free to modify the core as you see fit. Hooray for MIT license! :)
jbx replied on at Permalink Reply 1 Attachment
jbx
Actually, this is _almost_ implemented... but not quite.

The final step was commented out and not followed through.

It's easy to fix though. I've attached an alternative header_required.php. Just stick it in your elements folder. You can then set your title, keywords and description tag programmatically in each page's controller.

Just use:
$this->set('pageTitle', 'My page title');
$this->set('pageKeywords', 'My page keywords');
$this->set('pageDescription', 'My page description');


So you could check which alias someone has used and then just set the tags accordingly.

However, if I understand you, you're going to have lots of apparently different pages, but with the same content. Doesn't google have an issue with this?
http://www.google.com/support/webmasters/bin/answer.py?answer=66359...

Jon
ijessup replied on at Permalink Reply
ijessup
Thanks for fleshing out my first solution. However, I would guess buurvrouw is looking for a less code-centric way of changing the aliased page's properties (via a GUI).

There would be no way to distinguish the difference between the multiple aliases other than the collection path. Even then, trying to program out the logic to set the meta details would be less than enjoyable.

Even still, you're right about Google not liking identical pages.
buurvrouw replied on at Permalink Reply
buurvrouw
Hi there,

Thanks for your replies and suggestions. I am aware of googles problem with duplicate content, but i want those pages to be accessible from different masterpages.

It would be helpful if i could exclude the aliases from the sitemap so google won't index them. Is this possible in some way? In the standard sitemap functionality i can't find a way to add options.
buurvrouw replied on at Permalink Reply
buurvrouw
hmm, forgot to mention i mean the sitemap.xml