displayTeaserStandard, dmHTML and SEO
Phillip Rasmussen <[email protected]>
| Newsgroups | gmane.comp.cms.farcry.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi All,
I might be using some deprecated stuff here but I got heckled by my SEO
about duplicate URLS for content, namely dmHTML. This came about because if
I have a teaser to an HTML page it has a different url to the navigation eg
/about-us (dmNavigation) & /about-us/about-us (dmHTML).
I can of course put the following is the header:
<link rel="canonical" href="http://www.mydomain.co.nz/about-us<http://www.hirepool.co.nz/vehicle-rental>
"/>
eg
<cfif lcase(stobj.typename) EQ 'dmhtml'>
<skin:buildLink objectID="#request.navid#" r_url="theURL"/>
<cfoutput><link rel="canonical" href="http://#cgi.SERVER_NAME##theURL#"
/></cfoutput>
</cfif>
But best practice is to try and avoid (or at least referencing) the
additional URL to start with.
It doesn't look like skin:buildLink has any option that looks for a navid
for a content type.
My initial reaction is to put
<cfset theNavId = application.fapi.getContentType("#stobj.typename#").
getNavID(objectid="#stobj.objectid#", typename="#stobj.typename#", stobject=
"#stobj#") />
into the teasers webskins for dmHTML and use the theNavId instead of the
objectid for all the buildLinks.
Does anyone have any thoughts on the matter? Better way of doing it?
Regards
Phil
--
You received this message cos you are subscribed to "farcry-dev" Google group.
To post, email: farcry-dev-/[email protected]
To unsubscribe, email: farcry-dev+unsubscribe-/[email protected]
For more options: http://groups.google.com/group/farcry-dev
--------------------------------
Follow us on Twitter: http://twitter.com/farcry
---
You received this message because you are subscribed to the Google Groups "farcry-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to farcry-dev+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/[email protected]
For more options, visit https://groups.google.com/groups/opt_out.