<![CDATA[ Metatags manager removed from pages in v1.0.2? - My Forums]]> https://forums.modx.com/thread/?thread=33119 <![CDATA[Re: Metatags manager removed from pages in v1.0.2?]]> https://forums.modx.com/thread/33119/metatags-manager-removed-from-pages-in-v1-0-2#dis-post-413177 output a meta element only if


  • a TV value was actually inherited from a parent resource
  • a TV value was entered for the resource

but output nothing if the TV value was left at its default (parent's TV value is also @INHERIT) or is empty.

How would that be done?]]>
futurist Feb 23, 2012, 05:37 AM https://forums.modx.com/thread/33119/metatags-manager-removed-from-pages-in-v1-0-2#dis-post-413177
<![CDATA[Re: Metatags manager removed from pages in v1.0.2?]]> https://forums.modx.com/thread/33119/metatags-manager-removed-from-pages-in-v1-0-2#dis-post-181920 ]]> sottwell May 21, 2010, 11:52 AM https://forums.modx.com/thread/33119/metatags-manager-removed-from-pages-in-v1-0-2#dis-post-181920 <![CDATA[Re: Metatags manager removed from pages in v1.0.2?]]> https://forums.modx.com/thread/33119/metatags-manager-removed-from-pages-in-v1-0-2#dis-post-181919

What I see is that pages with descriptions and keywords will look like this.

<meta name="keywords" content="these, are, my, keywords" />
<meta name="description" content="Here is a description" />
<meta name="robots" content="" />



And then for pages with nofollow it will look like this.

<meta name="keywords" content="" />
<meta name="description" content="" />
<meta name="robots" content="nofollow" />




I guess it just seems to me that there is extra html that is being inserted on to the page, a lot like what dreamweaver does. Am I wrong on that thought?


Is the only way to properly do this is to use a snippet to check if the TV has a value and then output the metas? Like:

<?php
if($modx->getTemplateVar("tv_keywords") != "")
{
  echo "<meta name='keywords' content='". $modx->getTemplateVar("keywords") ."' />";
}
?>

I know the syntax may not be right, but you get the idea.]]>
heavensbest May 21, 2010, 11:25 AM https://forums.modx.com/thread/33119/metatags-manager-removed-from-pages-in-v1-0-2#dis-post-181919
<![CDATA[Re: Metatags manager removed from pages in v1.0.2?]]> https://forums.modx.com/thread/33119/metatags-manager-removed-from-pages-in-v1-0-2#dis-post-181918 sottwell May 20, 2010, 01:17 PM https://forums.modx.com/thread/33119/metatags-manager-removed-from-pages-in-v1-0-2#dis-post-181918 <![CDATA[Re: Metatags manager removed from pages in v1.0.2?]]> https://forums.modx.com/thread/33119/metatags-manager-removed-from-pages-in-v1-0-2#dis-post-181917 http://www.sottwell.com/how-template-variables-work.html

or like this:
http://wiki.modxcms.com/index.php/META_tags#Template_Workaround

Because I seems like I would always have that Meta tag on all my pages, even if I didn’t have keywords.]]>
heavensbest May 20, 2010, 01:04 PM https://forums.modx.com/thread/33119/metatags-manager-removed-from-pages-in-v1-0-2#dis-post-181917
<![CDATA[Re: Metatags manager removed from pages in v1.0.2?]]> https://forums.modx.com/thread/33119/metatags-manager-removed-from-pages-in-v1-0-2#dis-post-181916
Also, maybe I’m not understanding the TVs very well.

But it seems weird to have a TV for keywords and one for descriptions. The only reason is if I put in the head of my templates the following code
<meta name="keywords" content="[*keywords*]" />  <meta name="description" content="[*description*]" />


And then on some of my pages I want a nofollow or noindex, then I either have to create a new template, another TV for that, or something crazy snippet/TV combo. If I just use another TV for the nofollows, then there is extra HTML in the head that is useless. ie.
<meta name="keywords" content="" />  <meta name="description" content="" />


Like I said though, I may not understand TVs or even modx enough to know how to properly do this.]]>
heavensbest May 19, 2010, 11:48 AM https://forums.modx.com/thread/33119/metatags-manager-removed-from-pages-in-v1-0-2#dis-post-181916
<![CDATA[Re: Metatags manager removed from pages in v1.0.2?]]> https://forums.modx.com/thread/33119/metatags-manager-removed-from-pages-in-v1-0-2#dis-post-181915 rethrash Jan 04, 2010, 02:11 PM https://forums.modx.com/thread/33119/metatags-manager-removed-from-pages-in-v1-0-2#dis-post-181915 <![CDATA[Re: Metatags manager removed from pages in v1.0.2?]]> https://forums.modx.com/thread/33119/metatags-manager-removed-from-pages-in-v1-0-2#dis-post-181914
already started off with the TV and @INHERIT ...

Whats the reason under "Elements", "Manage META and Keywords" for the keywords elements remaining? Has that been left so that they can be connected up into a TV?]]>
unclespencer Jan 04, 2010, 01:51 PM https://forums.modx.com/thread/33119/metatags-manager-removed-from-pages-in-v1-0-2#dis-post-181914
<![CDATA[Re: Metatags manager removed from pages in v1.0.2?]]> https://forums.modx.com/thread/33119/metatags-manager-removed-from-pages-in-v1-0-2#dis-post-181913
TVs with @INHERIT and ManagerManager are infinitely better and more flexible.]]>
rethrash Jan 04, 2010, 10:50 AM https://forums.modx.com/thread/33119/metatags-manager-removed-from-pages-in-v1-0-2#dis-post-181913
<![CDATA[Metatags manager removed from pages in v1.0.2?]]> https://forums.modx.com/thread/33119/metatags-manager-removed-from-pages-in-v1-0-2#dis-post-181912
In a post from Ryan http://modxcms.com/forums/index.php/topic,37260.msg224958.html#msg224958 he mentioned that Meta might be dropped from a future release.

Anyone have any further information? huh

TO make things work i’m just using Template Variables but wondered if there was an official reason for the Meta TAB not being avaible in the latest version

thanks grin]]>
unclespencer Jan 04, 2010, 08:33 AM https://forums.modx.com/thread/33119/metatags-manager-removed-from-pages-in-v1-0-2#dis-post-181912