Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-07-08 08:37:34

shilmy
Member
Registered: 2006-04-29
Posts: 49

why meta description and keywords is not generated in txp 4.0.8

Hello,

I made a template, complete with meta data in the header, but in the page generated by txp those two meta, description and keywords, are missing. Is there any explanation to this?

Regards,
Sjarief

Offline

#2 2009-07-08 09:06:04

Dragondz
Moderator
From: Algérie
Registered: 2005-06-12
Posts: 1,538
Website GitHub Twitter

Re: why meta description and keywords is not generated in txp 4.0.8

hum, can you post the code used in the header to see what’s wrong?

Offline

#3 2009-07-08 11:35:12

shilmy
Member
Registered: 2006-04-29
Posts: 49

Re: why meta description and keywords is not generated in txp 4.0.8

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Keep It Simple</title>
<meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8" />
<meta name="author" content="Erwin Aligam - styleshout.com" />
<meta name="description" content="Site Description Here" />
<meta name="keywords" content="keywords, here" />
<meta name="robots" content="index, follow, noarchive" />
<meta name="googlebot" content="noarchive" />
<link rel="stylesheet" type="text/css" media="screen" href="/css/screen.css" />
</head>

Here is the code, I deliberately not put any txp tag yet, to make sure that the error is not caused by logic error.

In the page generated by txp, meta name description and keywords is missing, while the other metas kept intact.

Offline

#4 2009-07-08 11:53:43

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: why meta description and keywords is not generated in txp 4.0.8

My guess is that the generated page you are viewing is not using the Page (template) you are editing — common enough issue. Check that the section of the generated page is assigned to use the Page you are editing.


Code is topiary

Offline

#5 2009-07-08 12:06:50

shilmy
Member
Registered: 2006-04-29
Posts: 49

Re: why meta description and keywords is not generated in txp 4.0.8

I put the same code on the default page, and the generated home page still missing description and keywords

Offline

#6 2009-07-08 12:29:42

shilmy
Member
Registered: 2006-04-29
Posts: 49

Re: why meta description and keywords is not generated in txp 4.0.8

Ok, I try to put the code on local webserver on my notebook. The results is no error, the page generated with description and keywords.

The difference in the installation is that I install txp in my host using svn, while my local server using normal download. probably I should re-install textpattern

Offline

#7 2009-07-08 20:42:30

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: why meta description and keywords is not generated in txp 4.0.8

Switch to ‘debug’ mode in the preferences and then check the debug output in the resulting webpage (‘view source’ in your browser) to see if it is using the correct template. I suspect J Soo, who posted above, is correct.

Offline

#8 2009-07-08 21:05:25

shilmy
Member
Registered: 2006-04-29
Posts: 49

Re: why meta description and keywords is not generated in txp 4.0.8

OK, I did fresh install txp 4.0.8 in my hostgator account. Didn’t change anything except just adding meta information in the default page. Here is the header code :

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

	<title><txp:page_title /></title>

<meta name="author" content="Erwin Aligam - styleshout.com" />
<meta name="description" content="Site Description Here" />
<meta name="keywords" content="keywords, here" />
<meta name="robots" content="index, follow, noarchive" />
<meta name="googlebot" content="noarchive" />


	<link rel="home" href="<txp:site_url />" />

	<txp:feed_link flavor="atom" format="link" label="Atom" />
	<txp:feed_link flavor="rss" format="link" label="RSS" />

	<txp:css format="link" />

	<txp:rsd />
</head>

And here is the code from the txp generated code :

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>My Site</title> <meta name="author" content="Erwin Aligam - styleshout.com" /><meta name="robots" content="index, follow, noarchive" /><meta name="googlebot" content="noarchive" /><link rel="home" href="http://txp408.mytrumedia.com/" /><link rel="alternate" type="application/atom+xml" title="Atom Feed" href="http://txp408.mytrumedia.com/atom/" /><link rel="alternate" type="application/rss+xml" title="RSS Feed" href="http://txp408.mytrumedia.com/rss/" /><style media="screen" type="text/css">/**/body{margin:0;padding:0;font-family:Verdana,"Lucida Grande",Tahoma,Helvetica,sans-serif;color:#000;background-color:#fff;}blockquote,h3,p,li{padding-right:10px;padding-left:10px;font-size:0.9em;line-height:1.6em;}blockquote{margin-right:0;margin-left:20px;}h1,h2,h3{margin:0 0 15px 0;padding:0 10px;font-weight:normal;}h1,h2{font-family:Georgia,Times,serif;}h1{font-size:1.4em;}h2{font-size:1em;font-style:italic;}hr{margin:2em auto;width:370px;height:1px;color:#7a7e7d;background-color:#7a7e7d;border:none;}small,.small{font-size:0.9em;}/**/a{text-decoration:none;color:#000;border-bottom:1px #000 solid;}a img{border:none;}h1 a,h2 a,h3 a{border:none;}h3 a{font:1.5em Georgia,Times,serif;}#site-name a{border:none;}#sidebar-2 a,#sidebar-1 a{color:#c00;border:none;}/**/#accessibility{position:absolute;top:-10000px;}#container{margin:10px auto;padding:10px;width:760px;}#head{text-align:center;}#site-name{margin:15px 0;font:3em Georgia,Times,serif;}#site-slogan{font:italic 1em Georgia,Times,serif;}#sidebar-1,#sidebar-2{padding-top:50px;width:150px;}#sidebar-1{margin-right:5px;float:left;text-align:right;}#sidebar-2{margin-left:5px;float:right;}.section_list{margin:0 0 10px 0;padding:0;list-style-type:none;}.section_list ul{list-style-type:none;}.section_list li{margin:0 10px 2px 0;padding:0;}#content{margin:0 155px;padding-top:30px;}#foot{margin-top:5px;clear:both;text-align:center;}/**/#container{\width:770px;w\idth:760px;}#sidebar-1,#sidebar-2{\width:150px;w\idth:150px;}/**/#sidebar-2 p,#sidebar-1 p{font-size:0.8em;line-height:1.5em;}.caps{font-size:0.9em;letter-spacing:0.1em;}div.divider{margin:2em 0;text-align:center;}/**/.directory{list-style-type:circle;}.author{font-style:normal;font-size:0.8em;}.published{font-size:0.8em;}/**/.comments_error{color:#000;background-color:#fff4f4;}ul.comments_error{padding :0.3em;list-style-type:circle;list-style-position:inside;border:2px solid #fdd;}div#cpreview{color:#000;background-color:#f1f1f1;border:2px solid #ddd;}form#txpCommentInputForm td{vertical-align:top;}#comments-help{margin:2px 0 15px 0;font-size:0.7em;}/**/.error-status{font:1.3em Georgia,Times,serif;}
</style> 
</head>

So, why the meta description and keywords are missing? Is it server problem?

Last edited by shilmy (2009-07-08 21:07:03)

Offline

#9 2009-07-08 21:10:05

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

Re: why meta description and keywords is not generated in txp 4.0.8

Can you post a tag trace


My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

#10 2009-07-08 21:14:41

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: why meta description and keywords is not generated in txp 4.0.8

It is simply impossible that Txp has stripped out the two meta elements. As Sherlock Holmes said, “When you have eliminated all which is impossible, then whatever remains, however improbable, must be the truth.” The generated page you are seeing cannot be using the Page (template) you have shown. As Ruud suggested, please grab a tag trace, by setting your site’s production mode to debugging. Feel free to post the trace here.


Code is topiary

Offline

#11 2009-07-08 21:29:00

shilmy
Member
Registered: 2006-04-29
Posts: 49

Re: why meta description and keywords is not generated in txp 4.0.8

Strange thing, I change the txp status to debuging, but the txp didn’t generate any tag trace in the generated page

Offline

#12 2009-07-08 21:32:50

shilmy
Member
Registered: 2006-04-29
Posts: 49

Re: why meta description and keywords is not generated in txp 4.0.8

If you like, I can give you userid and password of my fresh installed txp so you can check it for yourself.

Offline

Board footer

Powered by FluxBB