<meta name="description" content="[[!If ?subject=`[[*description]]` &operator=`!=` &operand=`` &then=`[[*description]]` &else=`[[*content:notags:strip:limit=`157`]]...` ]]" />
[[!If?subject=`[[*description]]`&operator=`!=`&operand=`` &then= <meta name="description" content="`[[*description]]`" &else=`` ]]
Just a guess w/o looking at your site’s genned html, but shouldn’t your "!If" function be surrounding the whole meta statement: (warning: aircode. Im sure my syntax has errors)
[[!If?subject=`[[*description]]`&operator=`!=`&operand=`` &then= <meta name="description" content="`[[*description]]`" &else=`` ]]
That way, the whole meta statement, including "meta tags" are removed, and not just the ’content’ attribute’s value. Again, only aircode, and I haven’t used "IF" and concating the "&then=" with the literal string ’<meta name="description" content="’ to the param ’`[[*description]]`’ is probably incorrect.
But the idea of it should be correct-- "&else=" doesn’t need to output anything if there is no description value.
):
As an aside thought to what you’re trying to do:
I’d still just drop the whole meta tag if the description was missing, per this:
http://googlewebmastercentral.blogspot.com/2009/09/google-does-not-use-keywords-meta-tag.html
I used to maintain metas on a adsense driven website that was #1 on google, yahoo, and bing (msn at the time) search engines for a pretty popular word. (granted not a super competitive seo nitch - only 3 million or so google included pages. for comparison, ’modx’, is about a 1 million page search nitch)...
...but eventually I got really lazy in my article writing and editing, and dropped all the meta tags (keywords + description) I was maintaining. The rankings for yahoo and bing never dropped.
So in my experience, I seriously think meta tags are ’mostly irrelevant’ as of a few years ago. Really a waste of time, unless youre planning to use the tags for your own site searches, or for dublin core searching (different tags though). They really are totally safe to just drop. (Granted I haven’t done much hard core, daily SEO tracking in the last few years, but I doubt any of the SE’s place much importance on that meta tag than they did back then as it’s MUCH abused.
Please don’t take my word for this, have a look at what the #1 ranked sites are doing. Here’s a few I just grabbed seconds ago on a super competitive word ’seo’---- Top 5 listed sites for "seo" at Bing.com:
---> http://www.bing.com/search?q=seo
(a mere 200 million page nitch (google) or 17 million (bing) or 1.3 billion page nitch! (yahoo). Any way you dice it, it’s a highly competitive term, as all of the sites/pages were designed by SEO practitioners. duh.):
None of the top 5 listed have a single meta tag for ’description’ or ’keywords’ in them.
- #1 wikipedia.com - nope
- #2 seo.com - nope
- #3 wikipedia.com (again)- nope
- #4 seo-usa.org- nope
- #5 seochat.com- nope
So there you have it. A search engine that claims meta tags are important*, yet, for a super competitive search term-- not a single meta tag for ’description’ or ’keywords’ to be found in the top 5 sites in it’s results.
*ref: http://www.bing.com/toolbox/posts/archive/2009/12/01/seo-and-sem-basics.aspx
Definitely true, that.
While I agree with you on the keywords-part, Meta-description is a way to control the second part of your organic results: what’s in the description comes below the page-title most of the time (I’m not gonna go into detail here, that’s a discussion for a different forum)...
...and moreover at least 3 out of 5 of the sites you just mentioned do in fact have a meta-description.you are SO correct. I was lazy and just looked at the sites’ source pages in Firefox ’page source’. Flipping on firebug and taking a look see and they appear. DOH! Thanks for correcting me on it.
Nevertheless, what I’m trying to achieve should be possible, shouldn’t it? Parse the entire content, then apply the output-filters to them, right?
Bummer Holland didn’t win, though. 
Quote from: StevenLangbroek at Jul 14, 2010, 03:37 PMDefinitely true, that.
While I agree with you on the keywords-part, Meta-description is a way to control the second part of your organic results: what’s in the description comes below the page-title most of the time (I’m not gonna go into detail here, that’s a discussion for a different forum)...
Quote from: StevenLangbroek at Jul 14, 2010, 03:37 PM...and moreover at least 3 out of 5 of the sites you just mentioned do in fact have a meta-description.you are SO correct. I was lazy and just looked at the sites’ source pages in Firefox ’page source’. Flipping on firebug and taking a look see and they appear. DOH! Thanks for correcting me on it.
Few years back most of the top 10 for ’seo’ didnt have them. That’s when I removed mine, also on recommedation from a few at webmasterworld.
Quote from: StevenLangbroek at Jul 14, 2010, 03:37 PM
Nevertheless, what I’m trying to achieve should be possible, shouldn’t it? Parse the entire content, then apply the output-filters to them, right?
Certainly should be easy. Ive been no help whatsover, and haven’t used "IF". so I’ll just stfu for now.Bummer Holland didn’t win, though.