View Issue Details

IDProjectCategoryView StatusLast Update
0001521OXID eShop (all versions)4.09. SEO, SEO URLpublic2012-12-10 13:35
Reportersimply because Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionno change required 
Product Version4.2.0 revision 23610 
Summary0001521: Breadcrumb navigation
DescriptionFor SEO reasons we have put the the h1-tag into the file _path.tpl:

<h1>[{ $location }]</h1>

If you are in the detail view the h1-tags are placed correctly:

Sie sind hier: / <h1>main cat / sub cat</h1>

If you are in the categorie view, the h1-tag is not placed correctly:

Sie sind hier: / <h1></h1> main cat / sub cat

It is replicable in the Oxid Demoshop if you insert the h1-tag.
TagsNo tags attached.
Theme
BrowserAll
PHP Versionany
Database Versionany

Activities

dainius.bigelis

2009-12-03 10:41

reporter   ~0002161

Reminder sent to: simply because

Hi,

This case occurs because bad usage of H1 tag. The [{ $location }] is deprecated.
If you want h1 tag working properly, you should enclose all - [{ $location }] and Foreach cycle - inside the h1 tag.

Best regards,

simply because

2009-12-03 12:40

reporter   ~0002162

With this solution you will have the h1-tag more than once on the page if you are in a sub category.

Why does it work in the detail view with <h1>[{ $location }]</h1> ?

arvydas_vapsva

2009-12-03 12:59

reporter   ~0002164

Reminder sent to: simply because

[{ $location }] is deprecated, but still available in templates for thoose who do not want to update. Please avoid using it and use it normally, like in original _path.tpl file

arvydas_vapsva

2009-12-03 13:07

reporter   ~0002165

example:

[{ oxmultilang ident="INC_HEADER_YOUAREHERE" }] / <h1>[{ $location }]
[{foreach from=$tree_path item=oTreeItem }]
    [{ $_path_separator }]
    [{assign var="_path_link" value=$oTreeItem->getLink() }]
    [{ if $_path_link }][{ $_path_link }][{/if}]
    [{assign var="_path_separator" value=" / " }]
[{/foreach}]</h1>

simply because

2009-12-03 13:50

reporter   ~0002167

Great, thanks. :-))