View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0001521 | OXID eShop (all versions) | 4.09. SEO, SEO URL | public | 2009-12-02 23:10 | 2012-12-10 13:35 |
| Reporter | simply because | Assigned To | |||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | resolved | Resolution | no change required | ||
| Product Version | 4.2.0 revision 23610 | ||||
| Summary | 0001521: Breadcrumb navigation | ||||
| Description | For 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. | ||||
| Tags | No tags attached. | ||||
| Theme | |||||
| Browser | All | ||||
| PHP Version | any | ||||
| Database Version | any | ||||
|
|
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, |
|
|
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> ? |
|
|
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 |
|
|
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> |
|
|
Great, thanks. :-)) |