| Posted By |
Discussion Topic: Trying to beat specific´s posting record
|
|
riogrande |
11-13-2007 @ 12:26 PM |
|
|
Senior Member
Posts: 509
Joined: Mar 2003
|
:) Seriously though has anyone had any experience with meta tags keywords and descriptions with cfinclude for search engines? If I have a topnavigation cfm file which is included on every page then I imagine that can´t be good. If I put the keywords in a variable them I can output them fine in a meta tag? How is this best done? Thank you
|
dlackey |
11-13-2007 @ 12:30 PM |
|
|
Moderator
Posts: 935
Joined: Jun 2007
|
You CAN do that but I dont' recommend it. Google may not treat each page as a separate page since the first page of the source code will look alike. If you make it different, Google has a higher chance of indexing each page on it's own, thus increasing the likelihood of you page being picked up by a users search terms... make sense?
Cheers, Chip
|
riogrande |
11-13-2007 @ 1:00 PM |
|
|
Senior Member
Posts: 509
Joined: Mar 2003
|
Hi chip well what I do understand is that the idea is to have different mettag data on each page but that variables are, however, not the way to do it. So we must forget about the cfinclude then-don´t really want to do that-there must be a better way to do this?
|
dlackey |
11-13-2007 @ 1:16 PM |
|
|
Moderator
Posts: 935
Joined: Jun 2007
|
I hard coded mine to be different on each page. I suppose you couple populate a database and assign each page a pageID. Then each page could query the database where webpage.pageID eq qName.pageID and then pull the tag that corresponds to that pageID value. ??? Something like so: <cfquery name="qName" datasource="dsn"> select metatag from tbl where pageID = <cfqueryparam value=#webpage.pageID# cfsqltype="CF_SQL_INTEGER" name=pageID> </cfquery> <cfoutput query="qname"> #metatag# </cfquery>
Cheers, Chip
|
aadams |
11-13-2007 @ 2:43 PM |
|
|
Senior Member
Posts: 280
Joined: Nov 2005
|
Just to drop in my penny, the only meta tag that has any real value is the title tag. The golden days of meta keyword based search engines are long gone. Not to say you shouldn't have them, I still use them (particularly for DMOZ and the like). If you are interested in SEO, there are tons of pointers out there that will help you design your site for search engines. In my experience, making a good title is a fine balance. It is good to use a conservative sampling of your pages' keywords in the title tag, but it still needs to be action oriented enough that the searcher will want to click it. You must also make sure you use those keywords in the pages body. This can be done automagically using variables, but make sure they don't look automatic. Okay, maybe that was a penny and a half.
--Abram CFXChange.com - ColdFusion Custom Tags and Components
|
dlackey |
11-13-2007 @ 3:11 PM |
|
|
Moderator
Posts: 935
Joined: Jun 2007
|
@aadams: I agree 100%. Two of my public sites don't even have meta tags (except for the title tag and date file was updated - the date updated is more for me than anything else). My wife manages a DMOZ section, too. Small world... Cheers, Chip
This message was edited by dlackey on 11-13-07 @ 3:11 PM
|
aadams |
11-13-2007 @ 3:29 PM |
|
|
Senior Member
Posts: 280
Joined: Nov 2005
|
Ahhh, a link in DMOZ is worth two hundred in the bush. Nice point on the date updated.
--Abram CFXChange.com - ColdFusion Custom Tags and Components
|