18590 Posts in 4875 Topics by 2285 members
General Questions
SilverStripe Forums » General Questions » Duplicate content on Flickr module
General questions about getting started with SilverStripe that don't fit in any of the categories above.
Moderators: martimiz, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba
|
Page:
1
|
Go to End | |
| Author | Topic: | 486 Views |
-
Duplicate content on Flickr module

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 etcThis 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,
-
Re: Duplicate content on Flickr module

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 %>
| 486 Views | ||
|
Page:
1
|
Go to Top |


