From 1bd4f808396b1f8133774f191cafbe9026e39b66 Mon Sep 17 00:00:00 2001 From: Daniel Seifert Date: Fri, 11 Aug 2023 08:49:30 +0200 Subject: [PATCH] 0012128: show additional longdescriptions on first list page only --- .../views/blocks/list_second_longdescription.tpl | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/Application/views/blocks/list_second_longdescription.tpl b/Application/views/blocks/list_second_longdescription.tpl index 61e25c7..3468110 100644 --- a/Application/views/blocks/list_second_longdescription.tpl +++ b/Application/views/blocks/list_second_longdescription.tpl @@ -1,13 +1,23 @@ -[{if $oViewConf->getActiveClassName() == 'manufacturerlist' && $actCategory && $actCategory->oxmanufacturers__d3longdesc1->value }] +[{assign var="oPageNavigation" value=$oView->getPageNavigation()}] +[{if $oViewConf->getActiveClassName() == 'manufacturerlist' && + $actCategory && $actCategory->oxmanufacturers__d3longdesc1->value && + $oPageNavigation->actPage == 1 +}]
[{oxeval var=$actCategory->oxmanufacturers__d3longdesc1}]
[{/if}] [{$smarty.block.parent}] -[{if $oViewConf->getActiveClassName() == 'alist' && $actCategory && $actCategory->oxcategories__d3longdesc2->value }] +[{if $oViewConf->getActiveClassName() == 'alist' && + $actCategory && $actCategory->oxcategories__d3longdesc2->value && + $oPageNavigation->actPage == 1 +}]
[{oxeval var=$actCategory->oxcategories__d3longdesc2}]
[{/if}] -[{if $oViewConf->getActiveClassName() == 'manufacturerlist' && $actCategory && $actCategory->oxmanufacturers__d3longdesc2->value }] +[{if $oViewConf->getActiveClassName() == 'manufacturerlist' && + $actCategory && $actCategory->oxmanufacturers__d3longdesc2->value && + $oPageNavigation->actPage == 1 +}]
[{oxeval var=$actCategory->oxmanufacturers__d3longdesc2}]
[{/if}] \ No newline at end of file