Jump to content

Adding more characters to subcategories name in PS 1.6


Recommended Posts

Using 1.6.0.9 Prestashop.

 

Trying to change the truncate:25 to a higher number in 1.6 for my Subcategory Name.   Every time I change it and upload category.tpl to my server, I get nothing but blank screens on my site.

 

I have changed this easily in past versions of PS. Is there some new trick for 1.6?

 

Here is my code:

 

<a class="subcategory-name" href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'html':'UTF-8'}" title="{$subcategory.name|truncate:25:'...'|escape:'html':'UTF-8'|truncate:50}">{$subcategory.name|truncate:25:'...'|escape:'html':'UTF-8'|truncate:350}</a>

                    </h5>
 
I tried changing the first 25, the second one, and both with no luck.   Nothing but blank screens.
 
Thank you
Robin
 
 
 
Link to comment
Share on other sites

Cant actually remember if i have changed my code but it is different to yours and you can have more than 25 characters for the subcategory

Here is my code 

<a class="subcategory-name" href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'html':'UTF-8'}">{$subcategory.name|truncate:25:'...'|escape:'html':'UTF-8'|truncate:350}</a>

And here is the resultpost-535854-0-58679100-1426012906_thumb.png

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...