View Issue Details

IDProjectCategoryView StatusLast Update
0004267OXID eShop (all versions)3.1. Design, GUI, UXpublic2015-03-09 11:54
ReporterSouleater Assigned To 
PrioritynormalSeverityfeatureReproducibilityalways
Status closedResolutionsuspended 
Target Version4.9.0_5.2.0_RC1 
Summary0004267: Dynamic layout for 0, 1 and 2 sidebars
DescriptionWhen we have no sidebars and delete the sidebarLeft class from the page layout to utilize the full width of the page, then we have a problem with the categories in tpl/page/list/list.tpl

because of
[{if $iSubCategoriesCount%4 == 0}]
it adds the 5th box directly behind the 4th without the padding

So because the sidebar is missing we have 1 more column so it should be then
[{if $iSubCategoriesCount%5 == 0}]

If we have both sidebars, it should be [{if $iSubCategoriesCount%3 == 0}]

So we should check if there is a sidebar (classes exist sidebarLeft / sidebarRight? if $sidebar) and then decide how many columns we have for the category boxes

So it automatically changes the layout and output for the category boxes and we do not have to manually change it in the tpl file

Live Demo: http://s3.euroblaze.de/462/Kiteboarding/
Delete the node / element / the left sidebar with firebug or something else and change <div id="page" class=" sidebarLeft"> to <div id="page" class="">
TagsCategory
ThemeAzure
BrowserAll
PHP Versionany
Database Versionany

Activities

QA

2015-03-09 11:54

administrator   ~0010768

moved to backlog