Seite 1 von 1

2 Metatags bugs pro Artikel

Verfasst: Do 15. Mai 2008, 07:47
von djavet
Hallo

Es gibt not probleme mit die Metatags.

Ich habe via die Properties mein daten erfasst aber ohne die Title (wünsche die standard title in Layout), meine custom meta kommen nicht (keywords, description, revisite, etc), aber sobal ich schreiben etwas ins page title, tadaaaa sie kommen.
Ein bug?

Und noch etwas, die automatische generiert keywords list für haben fehler:
http://www.brasserietroisdames.ch/cms/f ... =11&lang=3

Code: Alles auswählen

<meta name="keywords" content="bires, mettler, avec, raphael, brasserie, bire, dans, ale, rencontre, trois, quil" />
Es gibt Fehler mit die Buchstaben ("bires" muss "bières" sein, etc.). Sie sind nicht mehrsprachig...
Auch ein klein Bug?


Vielen danke noch einmal.

Gruss, Dominique

Verfasst: Di 27. Mai 2008, 14:31
von emergence
Ich habe via die Properties mein daten erfasst aber ohne die Title (wünsche die standard title in Layout), meine custom meta kommen nicht (keywords, description, revisite, etc), aber sobal ich schreiben etwas ins page title, tadaaaa sie kommen.
Ein bug?
das versteh ich nicht...
Und noch etwas, die automatische generiert keywords list für haben fehler:
http://www.brasserietroisdames.ch/cms/f ... =11&lang=3
Code:
<meta name="keywords" content="bires, mettler, avec, raphael, brasserie, bire, dans, ale, rencontre, trois, quil" />


Es gibt Fehler mit die Buchstaben ("bires" muss "bières" sein, etc.). Sie sind nicht mehrsprachig...
ähm welche automatisch generierten keywords ?

Verfasst: Di 27. Mai 2008, 19:45
von djavet
Das automatismus für keywords is interne am Contentido. Es ist nicht korrekt mit die spezial characters wenn dies funktion liest die seite.
Sehen:
http://www.brasserietroisdames.ch/cms/f ... d=&idcat=3
oder:
http://www.brasserietroisdames.ch/cms/f ... 2&idart=51

Deutsche sprach wie mit "ü" funktionniert. Aber für französische, no way... Es ist unbrauchbar und hasslig.


Für die meta informationen, die sie sind nur gespeichern wenn ich gebe etwas ins feld "Title", ohne title, die sie sind speichern aber nicht eingefügt ins frontend.

Offe es ist mehr klar, oder ich kann vielheit ein english erklärung machen?

Dom

Verfasst: Di 27. Mai 2008, 19:56
von emergence
Deutsche sprach wie mit "ü" funktionniert. Aber für französische, no way... Es ist unbrauchbar und hasslig.
den teil hab ich jetzt verstanden...

die datei die das vermutlich verursachen wird
\plugins\chains\includesinclude.chain.content.createmetatags.php

lösung ??
djavet hat geschrieben:Für die meta informationen, die sie sind nur gespeichern wenn ich gebe etwas ins feld "Title", ohne title, die sie sind speichern aber nicht eingefügt ins frontend.

Offe es ist mehr klar, oder ich kann vielheit ein english erklärung machen?
-> english

Verfasst: Di 27. Mai 2008, 20:18
von djavet
For the meta tags problem, 2 screenshots will explain the case:
Bild

Bild

So you got the problem? no way to save without the page title.

Dom

Verfasst: Mi 28. Mai 2008, 09:18
von emergence
hmm... okay this looks strange...

moved...

Verfasst: Mo 9. Jun 2008, 12:07
von djavet
I notice too that author name was not saved...
Still if the Page title is writen.

Dom

Verfasst: Mo 9. Jun 2008, 21:30
von tono
A quick Workaround for the first Problem: open contenido/plugins/repository/keyword_density.php. Comment out line 17, which reads:

Code: Alles auswählen

$tmp[$i] = preg_replace($patterns, $replaces, $tmp[$i]);
with a leading #.

And the autogenerated keywords should read correct, even though it were better if they used entities.

Notiz: Warum wird in include.chain.content.createmetatags.php Zeile 126 strip_tags aufgerufen? Wiederholt sich in keyword_density.php Zeile 86

Verfasst: Mo 9. Jun 2008, 21:35
von djavet
Danke.
Noch etwas, ist es normal das die metas tags sind geschreiben wenn leer?
z.B. Autor oder Copyright (ich schreibe nur Page title, Description und Keywords) sin leer.
<meta name="generator" content="CMS Contenido 4.8.3" />
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=iso-8859-1" />
<meta name="robots" content="" />
<meta name="revisit-after" content="" />
<meta name="keywords" content="bires, mettler, avec, raphael, brasserie, bire, dans, ale, rencontre, trois, quil" />
<meta name="expires" content="" />
<meta name="description" content="Historique Trois Dames " />
<meta name="date" content="2008-04-29 22:51:28" />
<meta name="author" content="" />
-> http://www.brasserietroisdames.ch/cms/f ... =11&lang=3

Etaws ist noch falsh in diese Funktion.

Dom

Verfasst: Mo 9. Jun 2008, 21:49
von tono
Your Problem with saving Metatags without page title is not reproducable with 4.8.4. Is it possible that you were tricked by the fact, that metatags are cached by the createmetatag-plugin that is use to autogenerate the values since 4.8?

I suggest 2 things: First Updating to 4.8.4 and second trying to change some metatags while leaving the title empty and then waiting 1 hour to check the result, or emptying /cms/cache/ folder.

If your problem persists we'll dig deeper into it. 8)

Verfasst: Mo 9. Jun 2008, 21:52
von tono
I dont know from the point of html-standard, if you should note emtpy metatags. :?: I just can say: this is intended behavior by meens of this plugin and not a bug. Perhaps it should be changed.

Verfasst: Di 10. Jun 2008, 05:52
von djavet
tono hat geschrieben:I suggest 2 things: First Updating to 4.8.4 and second trying to change some metatags while leaving the title empty and then waiting 1 hour to check the result, or emptying /cms/cache/ folder.
Fist thing i've done when 4.8.4 was out. Sorry. Probelm persit.

And for the html standard, it's not logic to write the whole metatags empty list. Some engine will simply take the information and write it... empty.
And then you can have (maybe?) a conflict with the serach engine policie against empty information and had a wrong position in ranking due to empty information.

In my opinion, the best thing and te cleaver thing will be write only the information yougive, per ex. page title, keywords and description, the rest if empty, is not writen.

Just an idee to improve this wonderful CMS.

Dom

Verfasst: Mi 25. Jun 2008, 12:45
von timo.trautmann_4fb
Problem mit den Matatags gelöst: Sind benutzerdefinierte Metatags angegeben, werden diese immer verwendet, existieren sie nicht werden systemeigene Metatags integriert. Leere Metatags werden nicht mehr dargestellt. Das Problem mit den Keywords werde ich mir an sperater Stelle im Zusammenhang mit der Zeichencodierung ansehen. Fix existiert.

Datei functions.con2.php

Code: Alles auswählen

if (is_array($tmpMetatags))
{
	$metatags = $tmpMetatags;
}
ersetzen mit

Code: Alles auswählen

//added 2008-06-25 Timo Trautmann -- system metatags were merged to user meta tags and user meta tags were not longer replaced by system meta tags
if (is_array($tmpMetatags))
{
	//check for all system meta tags if there is already a user meta tag
	foreach ($tmpMetatags as $aAutValue) {
	  $bExists = false;
	  
	  //get name of meta tag for search
	  $sSearch = '';
	  if (array_key_exists('name', $aAutValue)) {
		$sSearch = $aAutValue['name'];
	  } else if (array_key_exists('http-equiv', $aAutValue)) {
		$sSearch = $aAutValue['http-equiv'];
	  }
	  
	  //check if meta tag is already in list of user meta tags
	  if (strlen($sSearch) > 0) {
		  foreach ($metatags as $aValue) {
			  if (array_key_exists('name', $aValue)) {
				  if ($sSearch == $aValue['name']) {
					  $bExists = true;
					  break;
				  }
			  } else if (array_key_exists('http-equiv', $aAutValue)) {
				  if ($sSearch == $aValue['http-equiv']) {
					  $bExists = true;
					  break;
				  }
			  }
		  }
	  }
	  
	  //add system meta tag if there is no user meta tag
	  if ($bExists == false && strlen($aAutValue['content']) > 0) { 
		array_push($metatags, $aAutValue);
	  }
	}
}