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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

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

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

Duplicate content on Flickr module


Go to End


2 Posts   1631 Views

Avatar
Fabie

Community Member, 28 Posts

29 December 2010 at 2:42pm

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

Community Member, 400 Posts

29 December 2010 at 8:36pm

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