Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Duplicate content on Flickr module


Reply

2 Posts   784 Views

Avatar
Fabie

29 December 2010 at 2:42pm Community Member, 28 Posts

Hi,
We are using the Flickr module http://demo.silverstripe.com/flickr/page/4 to showcase pictures at the bottom of a page of content.
What we notice is happening though is that the content on the page eg:

- Flickr With this module, you can pull images from Flickr...)

is indexed more than once e.g.

http://demo.silverstripe.com/flickr/page/1
http://demo.silverstripe.com/flickr/page/2
http://demo.silverstripe.com/flickr/page/3
http://demo.silverstripe.com/flickr/page/4 etc etc

This penalises the site because of duplicate content.

How are we best to solve this issue? Would specifying the canonical tab be the recommended way? http://googlewebmastercentral.blogspot.com/2009/02/specify-your-canonical.html

Thanks a bunch,

Avatar
Nivanka

29 December 2010 at 8:36pm Community Member, 395 Posts

simply you can use an if conditional on the HTML head section, like the following, and add a canonical tag

<% if ClassName == FlickrPage %>
<link rel="canonical" href="$Link" />
<% end_if %>