COMMUNITY FORUM
Setting Character Limit for K2 Content Module
- Ramesh Elamathi
-
Topic Author
- Offline
- Senior Member
Lead developer at www.j2store.org
Please Log in or Create an account to join the conversation.
- d.k.shukla
-
- Offline
- Senior Member
- Posts: 78
File for download is not available in your web page, please check and update.
thank you
Please Log in or Create an account to join the conversation.
- Ramesh Elamathi
-
Topic Author
- Offline
- Senior Member
Thanks for the reply. I sorted that out. File re uploaded as a zip. Just extract to get the php file.
Thanks again
d.k.shukla said:Hi Ramesh
File for download is not available in your web page, please check and update.
thank you
Lead developer at www.j2store.org
Please Log in or Create an account to join the conversation.
- Heather Marsh
-
- Offline
- New Member
- Posts: 2
Please Log in or Create an account to join the conversation.
- kire timov
-
- Offline
- Senior Member
- Posts: 59
thanks!
Please Log in or Create an account to join the conversation.
- kire timov
-
- Offline
- Senior Member
- Posts: 59
Please Log in or Create an account to join the conversation.
- Ramesh Elamathi
-
Topic Author
- Offline
- Senior Member
Yes. You can just adopt the same for for the category as well. (You would require a little PHP knowledge to do this) ;-)
kire timov said:bump
Lead developer at www.j2store.org
Please Log in or Create an account to join the conversation.
- kire timov
-
- Offline
- Senior Member
- Posts: 59
If someone is willing to make another step by step tutorial for k2 actually and not for the module (i suppose would be easy since for the module works and if as you say works in the component as well than it should be pretty straight forward for someone who have php knowledge)
thanks
Ramesh Elamathi said:Hi
Yes. You can just adopt the same for for the category as well. (You would require a little PHP knowledge to do this) ;-)
kire timov said:bump
Please Log in or Create an account to join the conversation.
- kire timov
-
- Offline
- Senior Member
- Posts: 59
So where it is? whats the xml file for category listing?
Please Log in or Create an account to join the conversation.
- kire timov
-
- Offline
- Senior Member
- Posts: 59
.. i will test some things if it works and will update you!
Please Log in or Create an account to join the conversation.
- kire timov
-
- Offline
- Senior Member
- Posts: 59
now:
Create a template over ride for the Category listing (in my case)
So where it would be?
I tought in :
components/com_k2/templates/default/category_item.php but i cannot find the code:
< ?php if($params->get('itemIntroText')): ?>
< ?php echo $item->introtext; ?>
< ?php endif; ?>
please help
Please Log in or Create an account to join the conversation.
- kire timov
-
- Offline
- Senior Member
- Posts: 59
It's not the exact line of code but this:
if ($view=='item'){
if ($item->params->get('itemIntroText'))
$item->text.= $item->introtext;
if ($item->params->get('itemFullText'))
$item->text.= '{K2Splitter}'.$item->fulltext;
}
else {
switch($task){
case '':
case 'category':
if ($item->params->get('catItemIntroText')) $item->text.= $item->introtext;
break;
case 'user':
if ($item->params->get('userItemIntroText')) $item->text.= $item->introtext;
break;
default:
if ($item->params->get('genericItemIntroText')) $item->text.= $item->introtext;
break;
}
}
and now i am lost...
Please Log in or Create an account to join the conversation.
- kchinnapparaj
-
- Offline
- New Member
- Posts: 1
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Platinum Member
- Posts: 8743
Are you using the latest version of K2? What's the issue you are facing?
Please Log in or Create an account to join the conversation.
- Web75
-
- Offline
- New Member
- Posts: 14
Please Log in or Create an account to join the conversation.
- Sarah
-
- Offline
- New Member
- Posts: 14
Please Log in or Create an account to join the conversation.
- Yiota
-
- Visitor
<?php echo K2HelperUtilities::wordLimit($item->title, 30); ?>
Please Log in or Create an account to join the conversation.