Keyword

[SOLVED] Re: Read More Link not working in K2 Content module

More
10 years 10 months ago #121597 by Benji

brian wrote: in modules/mod_k2_content/tmpl/Default/default.php

find:

<?php if($params->get('itemReadMore') && $item->fulltext): ?>

and remove && $item->fulltext

should be: <?php if($params->get('itemReadMore')): ?>

There is a reference to Full Text, but there is no such option in K2 Content Module Params, so I just removed it and it Works!


The above will work perfectly if you are trying to use intro word count limit to create your intro text from the full text of the K2 Item. I think the code should have eliminated the '&& $item->fulltext' parameter by default and let the module parameter decide whether or not to show the READ MORE. Thank you Brian for that! :lol:

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


Powered by Kunena Forum