Hello, I use k2 2.6 and I would like to limit the number of characters of the title for the module k2 content. Have you already made this change? thanks
13 years 1 month ago #118545
<?php if($params->get('itemTitle')): ?>
<a class="moduleItemTitle" href="<?php echo $item->link; ?>"><?php echo $item->title; ?></a>
<?php endif; ?><?php if($params->get('itemTitle')): ?>
<a class="moduleItemTitle" href="<?php echo $item->link; ?>"><?php echo substr($item->title, 0, 20); ?></a>
<?php endif; ?><?php echo substr($item->title, 0, 20); ?><?php echo substr($item->title, 0, 20).'...'; ?>Go to .../modules/mod_k2_content/tmpl/Default/default.php
if($params->get('itemReadMore') && $item->fulltext):
I've deleted the "&& $item->fulltext" part and now it's working fine.
Log in or create an account to reply.