Jump to content

Meta Title wird nicht angezeigt


Recommended Posts

nein, nicht standard template

habe geprüft, da sollte alles richtig sein:

<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">	
		<title>{$meta_title|escape:'htmlall':'UTF-8'}</title>
{if isset($meta_description) AND $meta_description}
		<meta name="description" content="{$meta_description|escape:html:'UTF-8'}" />
{/if}
{if isset($meta_keywords) AND $meta_keywords}
	<meta name="keywords" content="{$meta_keywords|escape:html:'UTF-8'}" />
{/if}
	<meta name="robots" content="{if isset($nobots)}no{/if}index,{if isset($nofollow) && $nofollow}no{/if}follow" />
	<meta name="author" content="Prestashop 1.5">   
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />    
<script>

cms seiten-titels sowie produktnamen unter produkt-detailseite sind richtig angezeigt. Irgenwas läuft nicht richtig nur bei categorien

Link to comment
Share on other sites

hier meine category.tpl

{include file="$tpl_dir./breadcrumb.tpl"}
{include file="$tpl_dir./errors.tpl"}
{if isset($category)}
	{if $category->id AND $category->active}
		<h1>
        <span>
			{strip}
				{$category->name|escape:'htmlall':'UTF-8'}
				{if isset($categoryNameComplement)}
					{$categoryNameComplement|escape:'htmlall':'UTF-8'}
				{/if}
				<strong class="category-product-count">
					{include file="$tpl_dir./category-count.tpl"}
				</strong>
			{/strip}
           </span>
		</h1>
        <div class="row_category clearfix">
		{if $scenes}
			<!-- Scenes -->
			{include file="$tpl_dir./scenes.tpl" scenes=$scenes}

		{else}
			<!-- Category image -->
			{if $category->id_image}
			<div class="align_center category_image ">
				<img src="{$link->getCatImageLink($category->link_rewrite, $category->id_image, 'category_default')}" alt="{$category->name|escape:'htmlall':'UTF-8'}" title="{$category->name|escape:'htmlall':'UTF-8'}" id="categoryImage"  />
			</div>
			{/if}

		{/if}
        		{if $category->description}
			{if strlen($category->description) > 5000}
				<p class="cat_desc clearfix" id="category_description_short">{$category->description|truncate:480} <span onclick="$('#category_description_short').hide(); $('#category_description_full').show();" class="lnk_more_cat"><i class="icon-plus-sign"></i> {l s='More'}</span></p>
			<p class="cat_desc clearfix" id="category_description_full" style="display:none">{$category->description}<span onclick="$('#category_description_short').show(); $('#category_description_full').hide();" class="lnk_more_cat close_cat"><i class="icon-minus-sign"></i> {l s='Hide'}</span></p>
			{else}
			<p class="cat_desc clearfix">{$category->description}</p>
			{/if}
        
            		{/if}
                        </div>
		{if isset($subcategories)}
		<!-- Subcategories -->
		<div id="subcategories" class="titled_box ">
			<h2>{l s='Subcategories'}</h2>
			<ul class="clearfix">
			{foreach from=$subcategories item=subcategory name=subcategories}
				<li class="categories_box {if $smarty.foreach.subcategories.iteration is div by 5}product_list_5{/if} {if $smarty.foreach.subcategories.iteration is div by 4}product_list_4{/if} {if $smarty.foreach.subcategories.iteration is div by 3}product_list_3{/if} {if $smarty.foreach.subcategories.iteration is div by 4}product_list_4{/if}">
					<a class="" href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'htmlall':'UTF-8'}" title="{$subcategory.name|escape:'htmlall':'UTF-8'}">
						{if $subcategory.id_image}
							<img src="{$link->getCatImageLink($subcategory.link_rewrite, $subcategory.id_image, 'category_default')}" alt="" />
						{else}
						<img src="{$img_cat_dir}default-medium_default.jpg" alt="" />
						{/if}
					
					</a>
              <a class="lnk_more_sub" href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'htmlall':'UTF-8'}" title="{$subcategory.name|escape:'htmlall':'UTF-8'}"><i class="icon-caret-right "></i> {$subcategory.name|escape:'htmlall':'UTF-8'|truncate:15:'...'}</a>
				</li>
			{/foreach}
			</ul>
		</div>


		{/if}

		{if $products}
            <div class="sortPagiBar shop_box_row shop_box_row clearfix">
            {include file="./product-sort.tpl"}
            {include file="./nbr-product-page.tpl"}
            </div>
            {include file="./product-list.tpl" products=$products}
            <div class="bottom_pagination shop_box_row  clearfix">
            {include file="./product-compare.tpl"}
            {include file="./pagination.tpl"}
            </div>
        {/if}
	{elseif $category->id}
		<p class="warning">{l s='This category is currently unavailable.'}</p>
	{/if}
{/if}
Link to comment
Share on other sites

ich hab jetzt modul deaktiviert aber hat sich nichts geändert. Da muss man jetzt vieles manuell entfernen. aber ich habe verglichen mit anderer prestashop installation wo ich default template habe und url war anders als bei mir:

 

/index.php?id_category=4&controller=category&id_lang=1

Link to comment
Share on other sites

ich möchte als kategorien-metatitels nichts anderes als kategorien namen. also im Normalfall sollte auch ohne Eintragung in metatitels categoeriennamen angezeigt. so ist bei produkt titels.

 

ich schicke gleich den link

Link to comment
Share on other sites

Ich glaube du verwechselst Titel mit den meta tags,description.

 

Du sprichst von dem Sichtbaren Namen in der Browser Titel Leiste?

 

Die meta description und keywords werden teilweise angezeigt  aber sind halt nicht überall ausgefüllt oder?

 

Es kann schon sein das dein rewrite override dir das zerschossen hat  ;/.

 

Core Änderungen immer mit bedacht machen....

Link to comment
Share on other sites

hier auf dem bild habe ich titel von forum kopiert, da sieht man ganze titel + seitenname.

in diesem Fall Meta Title wird angezeigt - Istallation und Einrichtung - PrestaShop Forums.

Bei mir wird nur seitenname angezeigt.

Neue Produkte und Angebote machen keine rewrite und sind auch richtig angezeigt. Alle andere Kategorien sind ohne totel.

post-710364-0-05095100-1391873875_thumb.png

Edited by zina (see edit history)
Link to comment
Share on other sites

hier ein teil von header.tpl

<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">	
		<title>{$meta_title|escape:'htmlall':'UTF-8'}</title>
{if isset($meta_description) AND $meta_description}
		<meta name="description" content="{$meta_description|escape:html:'UTF-8'}" />
{/if}
{if isset($meta_keywords) AND $meta_keywords}
	<meta name="keywords" content="{$meta_keywords|escape:html:'UTF-8'}" />
{/if}
	<meta name="robots" content="{if isset($nobots)}no{/if}index,{if isset($nofollow) && $nofollow}no{/if}follow" />
	<meta name="author" content="Prestashop 1.5">   
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />    
<script>
    if (navigator.userAgent.match(/Android/i)) {
        var viewport = document.querySelector("meta[name=viewport]");
       	viewport.setAttribute('content', 'initial-scale=1.0,maximum-scale=1.0,user-scalable=0,width=device-width,height=device-height');
    }
	if(navigator.userAgent.match(/Android/i)){
    window.scrollTo(0,1);
 }
</script> 
    <meta name="apple-mobile-web-app-capable" content="yes" /> 
		<link rel="icon" type="image/vnd.microsoft.icon" href="{$favicon_url}?{$img_update_time}" />
		<link rel="shortcut icon" type="image/x-icon" href="{$favicon_url}?{$img_update_time}" />
		<script type="text/javascript">
			var baseDir = '{$content_dir}';
			var baseUri = '{$base_uri}';
			var static_token = '{$static_token}';
			var token = '{$token}';
			var priceDisplayPrecision = {$priceDisplayPrecision*$currency->decimals};
			var priceDisplayMethod = {$priceDisplay};
			var roundMode = {$roundMode};
		</script>

ich habe eigentlich keine änderungen selber gemacht, nur modul installiert

Link to comment
Share on other sites

Hallo, ich habe endlich gefunden woran das liegt!

Tags sind nicht sichtbar nur wo Block Facettennavigation erscheint. wenn ich es deaktiviere wird alles sichtbar.

 

Aber was soll ich jetzt machen? deaktivieren kann ich nicht :((((

 

Modul ist Standard von prestashop, ich habe da nichts geändert. getestet wurde auf zwei unterschiedliche Installationen mit und ohne default template. Wahrscheinlich ist es ein Fehler von prestashop? (PrestaShop™ 1.5.6.1)

Edited by zina (see edit history)
Link to comment
Share on other sites

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...