2 Metatags bugs pro Artikel

Gesperrt
djavet
Beiträge: 264
Registriert: Do 22. Jan 2004, 11:31
Kontaktdaten:

2 Metatags bugs pro Artikel

Beitrag von djavet » Do 15. Mai 2008, 07:47

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

emergence
Beiträge: 10645
Registriert: Mo 28. Jul 2003, 12:49
Wohnort: Austria
Kontaktdaten:

Beitrag von emergence » Di 27. Mai 2008, 14:31

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 ?
*** make your own tools (wishlist :: thx)

djavet
Beiträge: 264
Registriert: Do 22. Jan 2004, 11:31
Kontaktdaten:

Beitrag von djavet » Di 27. Mai 2008, 19:45

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

emergence
Beiträge: 10645
Registriert: Mo 28. Jul 2003, 12:49
Wohnort: Austria
Kontaktdaten:

Beitrag von emergence » Di 27. Mai 2008, 19:56

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
*** make your own tools (wishlist :: thx)

djavet
Beiträge: 264
Registriert: Do 22. Jan 2004, 11:31
Kontaktdaten:

Beitrag von djavet » Di 27. Mai 2008, 20:18

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

emergence
Beiträge: 10645
Registriert: Mo 28. Jul 2003, 12:49
Wohnort: Austria
Kontaktdaten:

Beitrag von emergence » Mi 28. Mai 2008, 09:18

hmm... okay this looks strange...

moved...
*** make your own tools (wishlist :: thx)

djavet
Beiträge: 264
Registriert: Do 22. Jan 2004, 11:31
Kontaktdaten:

Beitrag von djavet » Mo 9. Jun 2008, 12:07

I notice too that author name was not saved...
Still if the Page title is writen.

Dom

tono
Beiträge: 574
Registriert: Mo 25. Apr 2005, 20:51
Wohnort: Frankfurt am Main
Kontaktdaten:

Beitrag von tono » Mo 9. Jun 2008, 21:30

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
Bis dann
Tono

djavet
Beiträge: 264
Registriert: Do 22. Jan 2004, 11:31
Kontaktdaten:

Beitrag von djavet » Mo 9. Jun 2008, 21:35

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

tono
Beiträge: 574
Registriert: Mo 25. Apr 2005, 20:51
Wohnort: Frankfurt am Main
Kontaktdaten:

Beitrag von tono » Mo 9. Jun 2008, 21:49

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)
Bis dann
Tono

tono
Beiträge: 574
Registriert: Mo 25. Apr 2005, 20:51
Wohnort: Frankfurt am Main
Kontaktdaten:

Beitrag von tono » Mo 9. Jun 2008, 21:52

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.
Bis dann
Tono

djavet
Beiträge: 264
Registriert: Do 22. Jan 2004, 11:31
Kontaktdaten:

Beitrag von djavet » Di 10. Jun 2008, 05:52

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

timo.trautmann_4fb
Beiträge: 472
Registriert: Di 15. Apr 2008, 15:57
Wohnort: Michelstadt
Kontaktdaten:

Beitrag von timo.trautmann_4fb » Mi 25. Jun 2008, 12:45

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);
	  }
	}
}

Gesperrt