barbour Posted March 10, 2015 Share Posted March 10, 2015 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 More sharing options...
mickeyboy1 Posted March 10, 2015 Share Posted March 10, 2015 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 result Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now