HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Duplicate meta descriptions in sub-forums

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#74631 (In Topic #15534)
Avatar

Community saint

Looking through all the Webmaster tools stuff and found in the HTML suggestions that I have duplicate meta descriptions on sub-forums:


I checked and found that you cannot set the meta-description per sub-forum or even forum. Is this something that should be addressed? I know there is an element of bowing to the almighty Google but those that don't….

Bob
Back to the top
 
Posted
Rating:
#74685
Avatar

ocStaff (admin)

There are two meta data descriptions. There's the one that is defined for the whole site, or can be overridden by content (next to where keywords are set). That is {DESCRIPTION*} in HEADER.tpl.
Then there's the one where ocPortal tries to look at natural data and work one out at run-time. This is {$META_DATA,description}. It is passed to Facebook OpenGraph and DublinCore. You can substitute the second over the first in HEADER.tpl if that's what you want. In this case it does pick up on the forum description.



Become a fan of ocPortal on Facebook or add me as a friend.

Expand: Was I helpful? Was I helpful?

Expand: Follow me on Twitter Follow me on Twitter







If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource.
Back to the top
 
Posted
Rating:
#74698
Avatar

Community saint

So there is no way to set the meta-description for just the forums? I'd hate to lose the meta-descriptions I've already set on other content.

Maybe you could consider using the Description field already available in the forums to set the meta-descriptions for forums.

Bob
Back to the top
 
Posted
Rating:
#74699
Avatar

ocStaff (admin)

Code

{+START,IF,{$MATCH_KEY_MATCH,forum:forumview}}{$META_DATA,description}{+END}{+START,IF,{$NOT,{$MATCH_KEY_MATCH,forum:forumview}}}{DESCRIPTION*}{+END}



Become a fan of ocPortal on Facebook or add me as a friend.

Expand: Was I helpful? Was I helpful?

Expand: Follow me on Twitter Follow me on Twitter







If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource.
Back to the top
 
Posted
Rating:
#74720
Avatar

Community saint

Thanks for this, Chris.

Does this go in HEADER.tpl or in one of the forum view tpls?

Bob
Back to the top
 
Posted
Rating:
#74722
Avatar

ocStaff (admin)

Substituting {DESCRIPTION*} in HEADER.tpl.



Become a fan of ocPortal on Facebook or add me as a friend.

Expand: Was I helpful? Was I helpful?

Expand: Follow me on Twitter Follow me on Twitter







If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource.
Back to the top
 
Posted
Rating:
#74725
Avatar

Community saint

Cool. Thanks for the help, Chris.

Bob
Back to the top
 
Posted
Rating:
#74735
Avatar

Community saint

So it replaces the bit in bold from line 24 in HEADER.tpl?

<meta name="description" content="{+START,IF,{$NEQ,{DESCRIPTION},{!NA}}}{DESCRIPTION*
}{+END}
" />

Bob
Back to the top
 
Posted
Rating:
#74760
Avatar

ocStaff (admin)

That'd work.



Become a fan of ocPortal on Facebook or add me as a friend.

Expand: Was I helpful? Was I helpful?

Expand: Follow me on Twitter Follow me on Twitter







If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource.
Back to the top
 
Posted
Rating:
#74799
Avatar

Community saint

Okay, then, I've given that a go. Is there any way to quickly check the value of description?

Thanks for your help.

Bob
Back to the top
 
Posted
Rating:
#74800
Avatar

ocStaff (admin)

View the page source?



Become a fan of ocPortal on Facebook or add me as a friend.

Expand: Was I helpful? Was I helpful?

Expand: Follow me on Twitter Follow me on Twitter







If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource.
Back to the top
 
Posted
Rating:
#74801
Avatar

Community saint

Another DUH moment. I think I'm clearly in the lead in that metric.  :$

Chris-

Will you be implementing this change in the disturb? I think you should consider it as it will reduce one go Google's nags.

Thanks for your help.

Bob
Back to the top
 
Posted
Rating:
#74802
Avatar

ocStaff (admin)

No, I'm not sure I agree with it, and therefore I'm sure some people won't. The default behaviour in ocPortal is that there is a site description, and content has descriptions. Things like categories don't really stand alone as an item so well compared to those two extremes – I think there is a case that the SERP description of a forum is better that of the site, because that's the closest entity an outside observer might want to know about.
It's debatable though. I'm more concerned about making everything go through that META_DATA symbol, then it is all simpler code and people can decide what they want.



Become a fan of ocPortal on Facebook or add me as a friend.

Expand: Was I helpful? Was I helpful?

Expand: Follow me on Twitter Follow me on Twitter







If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource.
Back to the top
 
Posted
Rating:
#74815
Avatar

Community saint

While I can see your point, I think I would side with Google on this and since you provide the Description field in each forum category, it seems an ideal match - make Google happy and have the benefit of creating a useful meta-desciption based on the more specific object if it is filled in.

I see this is also an issue with blogs but I am not sure there is a good solution here as there is in forums.
EDIT: Actually, there is a description field in the author profile. Notsure how it might fit into your scheme of reference.

My whole attitude about this is that Google is suggesting that, where possible, you move from the general to the specific and I agree with that approach. Otherwise you end up with SERPs listings whose description just mirrors the main site description which to me is like picking a number in a crapshoot.

At any rate, I just wanted to make notes on whether or not to expect this to change in an update.

Thanks for your help.

Bob


Last edit: by BobS
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: