hallo zusammen,
leider ist mir soeben aufgefallen das lange kategorienamen leider einfach abgeschnitten werden.
soll heissen:
“pferd und hund tanzen zusammen samba” als kategoriename würde in meiner linken kategoriespalte maximal als
"pferd und hund" angezeigt werden…
warum denn das? warum wird denn net zb in der nächsten zeile fortgeführt?
nutze das template ox1010
hoffe auf anregungen 
left.tpl:
[{oxid_include_dynamic file="dyn/mini_basket.tpl" type="basket" testid="LeftBasket"}]
[{if $oxcmp_categories}]
<div class="MenuFrame">
<h1>[{ oxmultilang ident="START_CATEGORIES" }]</h1>
[{if $oView->showTopCatNavigation()}]
[{*include file="inc/category_tree.tpl" tree=$oxcmp_categories->getClickRoot() act=$oxcmp_categories->getClickCat() *}]
[{include file="inc/category_tree.tpl" tree=$oxcmp_categories act=$oxcmp_categories->getClickCat() }]
[{else}]
[{include file="inc/category_tree.tpl" tree=$oxcmp_categories act=$oxcmp_categories->getClickCat() }]
[{/if}]
[{if $oView->loadVendorTree() && $oView->getVendorlist()}]
[{include file="inc/vendor_tree.tpl" tree=$oView->getVendorlist() }]
[{/if}]
[{if $oView->loadManufacturerTree() && $oView->getManufacturerlist()}]
[{include file="inc/manufacturer_tree.tpl" tree=$oView->getManufacturerlist() }]
[{/if}]
</div>
[{/if}]
[{*
<div class="MenuFrame">
<h1>[{ oxmultilang ident="INC_RIGHTITEM_MYACCOUNT" }]</h1>
[{oxid_include_dynamic file="dyn/cmp_login_right.tpl" type="login" pgnr=$pageNavigation->actPage tpl=$tpl additional_form_parameters="`$AdditionalFormParameters`"|cat:$oViewConf->getNavFormParams() }]
[{oxid_include_dynamic file="dyn/cmp_login_links.tpl" type="login_links"}]
</div>
*}]
[{*include file="inc/infobox.tpl"*}]
[{if $oxcmp_news && count($oxcmp_news) > 0}]
[{include file="inc/cmp_news.tpl"}]
[{/if}]
[{*
[{if $oView->showNewsletter()}]
<div class="box">[{include file="inc/cmp_newsletter.tpl" }]</div>
[{/if}]
*}]
[{ if $oView->getTop5ArticleList() }]
<div class="MenuFrame">
<h1>
[{ oxmultilang ident="INC_RIGHTITEM_TOPOFTHESHOP" }]
[{if $rsslinks.topArticles}]
<a class="rss" id="rss.topArticles" href="[{$rsslinks.topArticles.link}]" title="[{$rsslinks.topArticles.title}]"></a>
[{oxscript add="oxid.blank('rss.topArticles');"}]
[{/if}]
</h1>
<div class="leftbox">[{include file="inc/top_items.tpl" }]</div>
</div>
[{ /if }]
[{if count($oView->getBargainArticleList()) > 0 }]
<div class="MenuFrame">
<h1>
[{ oxmultilang ident="INC_RIGHTITEM_BARGAIN" }]
[{if $rsslinks.bargainArticles}]
<a class="rss" id="rss.bargainArticles" href="[{$rsslinks.bargainArticles.link}]" title="[{$rsslinks.bargainArticles.title}]"></a>
[{oxscript add="oxid.blank('rss.bargainArticles');"}]
[{/if}]
</h1>
<div class="leftbox">[{include file="inc/bargain_items.tpl"}]</div>
</div>
[{ /if }]
[{ if $oView->getAccessoires() }]
<div class="MenuFrame">
<strong class="h3" id="test_RightSideAccessoiresHeader">[{ oxmultilang ident="INC_RIGHTITEM_ACCESSORIES" }]</strong>
<div class="leftbox">[{include file="inc/rightlist.tpl" list=$oView->getAccessoires() altproduct=$product test_Type=accessoire}]</div>
</div>
[{ /if }]
[{ if $oView->getSimilarProducts() }]
<div class="MenuFrame">
<strong class="h3" id="test_RightSideSimilListHeader">[{ oxmultilang ident="INC_RIGHTITEM_SIMILARPRODUCTS" }]</strong>
<div class="leftbox">[{include file="inc/rightlist.tpl" list=$oView->getSimilarProducts() altproduct=$product test_Type=similarlist}]</div>
</div>
[{ /if }]
[{ if $oView->getCrossSelling() }]
<div class="MenuFrame">
<strong class="h3" id="test_RightSideCrossListHeader">[{ oxmultilang ident="INC_RIGHTITEM_HAVEPOUSEEN" }]</strong>
<div class="leftbox">[{include file="inc/rightlist.tpl" list=$oView->getCrossSelling() altproduct=$product test_Type=cross}]</div>
</div>
[{ /if }]
[{ if $oView->getAlsoBoughtTheseProducts() }]
<div class="MenuFrame">
<strong class="h3" id="test_RightSideCustWhoHeader">[{ oxmultilang ident="INC_RIGHTITEM_CUSTOMERWHO" }]</strong>
<div class="leftbox">[{include file="inc/rightlist.tpl" list=$oView->getAlsoBoughtTheseProducts() altproduct=$product test_Type=customerwho}]</div>
</div>
[{ /if }]
[{* <div class="MenuFrame">
<h1>[{ oxmultilang ident="INC_LEFTITEM_PARTNERANDSEAL" }]</h1>
<div class="partners">
<div class="logo">
[{include file="inc/trustedshops_item.tpl"}]
</div>
<div class="logo">
<a href="http://www.zend.com" id="link.zendSite"><img src="[{$oViewConf->getImageUrl()}]zend_logo.gif" alt=""></a>
[{oxscript add="oxid.blank('link.zendSite');"}]
</div>
</div>
</div> *}]
Kann es sein, das der Text nur irgendwo drunter geschoben wird und nicht entfernt wird?! In meinem Testshop 4.4.0 kann ich beliebig lange Kategorienamen angeben. Die obere Navi wird dann breiter und die linke Navi macht brav einen Zeilenumbruch und wird dann mehrspaltig. Schön ist es nicht, aber es funktiniert.
nunja,
wie genau es gemacht wird kann ich nicht sagen - nur das es definitv nicht angezeigt wird.
im standardtemplate funktioniert es reibungslos…
auch in der mittigen box in der ja alle unterkatgorien nochmal angezeigt werden stehen alle korrekt da, nur eben nicht in der linken navigation
In dem von dir geposteten Quelltext ist aber keine Stelle zu finden die dort kürzt. Vielleicht aber in der “inc/category_tree.tpl”. Das muss dann ja templatespezifisch sein.
na wenn das so ist hier die category_tree.tpl:
[{if $tree || $oView->getContentCategory() }]
[{assign var="oContentCat" value=$oView->getContentCategory() }]
[{defun name="category_tree" tree=$tree act=$act class=$class testSubCat=''}]
[{strip}]
<ul [{if $class}]class="[{$class}]"[{/if}]>
[{foreach from=$tree item=ocat key=catkey name=$test_catName}]
[{if ( !$ocat->isTopCategory() || !$oView->showTopCatNavigation() ) && $ocat->getContentCats() }]
[{foreach from=$ocat->getContentCats() item=ocont key=contkey name=cont}]
<li><a id="test_BoxLeft_Cms_[{if $ocat->isTopCategory()}][{$ocat->oxcategories__oxid->value}]_[{$smarty.foreach.cont.iteration}][{else}][{$testSubCat}]_sub[{$smarty.foreach.cont.iteration}][{/if}]" href="[{$ocont->getLink()}]" class="[{if $ocat->isTopCategory()}]root[{/if}][{if $oContentCat && $oContentCat->getId()==$ocont->getId()}] act last[{/if}]">[{ $ocont->oxcontents__oxtitle->value }]</a></li>
[{/foreach}]
[{/if}]
[{if $ocat->getIsVisible() }]
<li>
<a id="test_BoxLeft_Cat_[{if $ocat->isTopCategory()}][{$ocat->oxcategories__oxid->value}]_[{$smarty.foreach.$test_catName.iteration}][{else}][{$testSubCat}]_sub[{$smarty.foreach.$test_catName.iteration}][{/if}]" href="[{$ocat->getLink()}]" class="[{if $ocat->isTopCategory()}]root [{/if}][{if $ocat->hasVisibleSubCats}][{if $ocat->expanded }]exp [{/if}]has [{else}]last [{/if}][{if isset($act) && $act->getId()==$ocat->getId() && !$oContentCat }]act [{/if}]">[{$ocat->oxcategories__oxtitle->value}] [{if $ocat->getNrOfArticles() > 0}] ([{$ocat->getNrOfArticles()}])[{/if}]</a>
[{if $ocat->getSubCats() && $ocat->expanded && ($_path_link || $product->oxarticles__oxartnum->value) }]
[{fun name="category_tree" tree=$ocat->getSubCats() act=$act class="" testSubCat=$ocat->oxcategories__oxid->value }]
[{/if}]
[{if $ocat->isTopCategory()}]
<span class="break"></span>
[{/if}]
</li>
[{/if}]
[{foreachelse}]
[{if $oContentCat }]
<li><a id="test_BoxLeft_Cms_0" class="root act" href="[{$oContentCat->getLink()}]">[{ $oContentCat->oxcontents__oxtitle->value }]</a></li>
[{/if}]
[{/foreach}]
</ul>
[{/strip}]
[{/defun}]
[{/if}]
falls es noch jemand braucht: in src/js/widgets/oxarticlebox.js muss die Schleife
while (iTitleWidth > iContWidth)
auskommentiert werden also sieht dann so aus:
/while (iTitleWidth > iContWidth)
{
iTitleLength–;
$(this).html(sTitleText.substr(0, iTitleLength)+‘…’ + sTitleEnd);
$(this).html(sTitleText + sTitleEnd);
var iTitleWidth = $(this).width();
}/
Das Auskommentieren der Schleife hat dann aber leider den unschönen Effekt, dass der Rest eines langen Titels aus der Box heraus ragt. Man müsste also die Schleife irgendwie so umbauen, dass an den richtigen Stellen Zeilenumbrüche hineinkommen. Das scheint mir nicht so ganz trivial zu sein. Ich muss gestehen, dafür nicht genügend Zeit zu haben.