Keyword

K2 Content Module readmore link problem

More
9 years 4 months ago #135462 by Terry
Hi everyone,
I'm running joomla 3.3.6 with the latest version of k2.

I'm trying to display items from a category in a k2 content module, it's all fine except that I want to display the titles of the items PLUS a readmore link below each title but whatever I do I can't get the module to display the 'read more' link.

The title links are fine, can anyone advise as to why I can't get the readmore links to display?

many thanks in advance,
T.

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 4 months ago #135476 by Krikor Boghossian
Replied by Krikor Boghossian on topic K2 Content Module readmore link problem
The read more button will display if you have a fulltext defined hence this code.
<?php if($params->get('itemReadMore') && $item->fulltext): ?>
        <a class="moduleItemReadMore" href="<?php echo $item->link; ?>">
          <span><?php echo JText::_('K2_READ_MORE'); ?></span>
        </a>
        <?php endif; ?>

You can change this by removing && $item->fulltext .

To locate the file and to perform these overrides please read this post . getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates

The folder you need to override is located at /modules/mod_k2_content/Default/tmpl

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum