COMMUNITY FORUM
- Forum
- K2 Community Forum
- English K2 Community
- [SOLVED] IntroText words limit not working while selecting
[SOLVED] IntroText words limit not working while selecting
- Manoj Goel
- Topic Author
- Offline
- Junior Member
Less
More
11 years 9 months ago #66725
by Manoj Goel
[SOLVED] IntroText words limit not working while selecting was created by Manoj Goel
IntroText words limit not working while selecting multiple categories for Home Page
I have a Articles directory freearticles.mohul.com built on Joomla 1.5 and K2 2.5.0 that I am redesigning on Joomla 2.5.4 and K2 2.5.7, but facing following problem:
I have lots of categories at level1 and level2. All these categories inherit the parameters from 1 category at level1. These categories have their respective menus. Category view of individual categories is working fine. It is showing their respective items/articles list with Introtext as par my specified words limit.
Check here: mohul.com/articles/index.php/advertising
Or mohul.com/articles/index.php/arts-and-entertainment
It is showing items/articles as I want.
But for Home page I have selected multiple categories to display all items/articles under these selected categories with Introtext and my specified word limit in categories parameter. But it is not showing the result as expected.
It is displaying all articles with whole text(full articles). It is not limiting the Introtext as set in parameters.
Check Here: mohul.com/articles/
But my older site on Joomla 1.5 with same setting is working fine (it should look like this one)
Check Here: freearticles.mohul.com
Same is the problem with Author pages
Check Here: mohul.com/articles/index.php/component/k2/itemlist/user/42-superuser
But working fine on my older site
Check Here: freearticles.mohul.com/author/dave-sprint
I don’t understand why Introtext words limit is not working while selecting multiple categories or on Author pages, may be some PHP code error in latest version.
Is there anybody else who is also facing the same problem?
Other Info:
Server PHP: 5.3.8
Using Single Editor Window as Introtext and FullText.
Any Help will be highly appreciated.
Thanks in Advance
Manoj Goel
I have a Articles directory freearticles.mohul.com built on Joomla 1.5 and K2 2.5.0 that I am redesigning on Joomla 2.5.4 and K2 2.5.7, but facing following problem:
I have lots of categories at level1 and level2. All these categories inherit the parameters from 1 category at level1. These categories have their respective menus. Category view of individual categories is working fine. It is showing their respective items/articles list with Introtext as par my specified words limit.
Check here: mohul.com/articles/index.php/advertising
Or mohul.com/articles/index.php/arts-and-entertainment
It is showing items/articles as I want.
But for Home page I have selected multiple categories to display all items/articles under these selected categories with Introtext and my specified word limit in categories parameter. But it is not showing the result as expected.
It is displaying all articles with whole text(full articles). It is not limiting the Introtext as set in parameters.
Check Here: mohul.com/articles/
But my older site on Joomla 1.5 with same setting is working fine (it should look like this one)
Check Here: freearticles.mohul.com
Same is the problem with Author pages
Check Here: mohul.com/articles/index.php/component/k2/itemlist/user/42-superuser
But working fine on my older site
Check Here: freearticles.mohul.com/author/dave-sprint
I don’t understand why Introtext words limit is not working while selecting multiple categories or on Author pages, may be some PHP code error in latest version.
Is there anybody else who is also facing the same problem?
Other Info:
Server PHP: 5.3.8
Using Single Editor Window as Introtext and FullText.
Any Help will be highly appreciated.
Thanks in Advance
Manoj Goel
Please Log in or Create an account to join the conversation.
- Manoj Goel
- Topic Author
- Offline
- Junior Member
11 years 9 months ago #66726
by Manoj Goel
Replied by Manoj Goel on topic Re: IntroText words limit not working while selecting
Hi,
Is there anybody who can help me???????
Is there anybody who can help me???????
Please Log in or Create an account to join the conversation.
- Manoj Goel
- Topic Author
- Offline
- Junior Member
11 years 9 months ago #66727
by Manoj Goel
Replied by Manoj Goel on topic Re: IntroText words limit not working while selecting
I found the solution.
Thanks to all those who tried to solve this problem.
BK Manoj Goel
Thanks to all those who tried to solve this problem.
BK Manoj Goel
Please Log in or Create an account to join the conversation.
- david craig
- Offline
- New Member
Less
More
- Posts: 1
11 years 9 months ago #66728
by david craig
Replied by david craig on topic Re: IntroText words limit not working while selecting
Hi Manjo
Glad you found a soulution. Can you share what you found as I am experiencing the same issue?
Thnaks
Glad you found a soulution. Can you share what you found as I am experiencing the same issue?
Thnaks
Please Log in or Create an account to join the conversation.
- Mandy
- Offline
- New Member
Less
More
- Posts: 2
11 years 9 months ago #66729
by Mandy
Replied by Mandy on topic Re: IntroText words limit not working while selecting
I am also experiencing the same issue with K2 and joomla 2.5. does anyone know how to fix the intro text not displaying properly issue?
Please Log in or Create an account to join the conversation.
- Manoj Goel
- Topic Author
- Offline
- Junior Member
11 years 9 months ago #66730
by Manoj Goel
Replied by Manoj Goel on topic Re: IntroText words limit not working while selecting
Paid solution is available, if you need you may contact me, see my profile for my email.
Please Log in or Create an account to join the conversation.
- ghog
- Offline
- New Member
Less
More
- Posts: 5
11 years 9 months ago #66731
by ghog
Replied by ghog on topic Re: IntroText words limit not working while selecting
@ Manoj, are you saying that you want to be paid to share the solution? I don't see any offers from you to pay for the solution when you were requesting help.
If anyone with the spirit of sharing knows how to do this please share as I have the same issue.
If anyone with the spirit of sharing knows how to do this please share as I have the same issue.
Please Log in or Create an account to join the conversation.
- Manoj Goel
- Topic Author
- Offline
- Junior Member
11 years 9 months ago #66732
by Manoj Goel
Replied by Manoj Goel on topic Re: IntroText words limit not working while selecting
I had a bad experience on K2 Forum, whenever I asked for any help on this forum, nobody has responded ever. So, I decided not to share my solutions.
At least developers must have a support forum, at least paid one if not free.
At least developers must have a support forum, at least paid one if not free.
Please Log in or Create an account to join the conversation.
- Lefteris
- Offline
- Moderator
Less
More
- Posts: 8743
11 years 9 months ago #66733
by Lefteris
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Lefteris on topic Re: IntroText words limit not working while selecting
Hi. Anyone facing these issues please ensure that:
1. You have correctly setup the settings for the desired category.
2. You have not messed up the settings inheritance.
In any case you can always apply the word limit in your template overrides by calling the following code:
K2HelperUtilities::wordLimit($item->introtetx, 100);
1. You have correctly setup the settings for the desired category.
2. You have not messed up the settings inheritance.
In any case you can always apply the word limit in your template overrides by calling the following code:
K2HelperUtilities::wordLimit($item->introtetx, 100);
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Trister
- Offline
- New Member
Less
More
- Posts: 5
11 years 8 months ago - 11 years 8 months ago #66734
by Trister
Replied by Trister on topic Re: IntroText words limit not working while selecting
I'm also having the same problem with introtext not working.
I haven't touched any settings, just installed, create a category, and 2 items. I've set the home page to point to this one and only category. The only setting I changed was to add 100 to the intro text but, it shows the whole thing still.
I've read the forums and it says to change the template with the below code.
FROM:TO:
I've looked around and the only place I found this code was in modules/mod_k2_content/tmpl/default/default.php
But when I changed this, it still showed the whole article. Is there something I'm missing or maybe it's a different file I should be editing?
I haven't touched any settings, just installed, create a category, and 2 items. I've set the home page to point to this one and only category. The only setting I changed was to add 100 to the intro text but, it shows the whole thing still.
I've read the forums and it says to change the template with the below code.
FROM:
<?php if($params->get('itemIntroText')): ?>
<?php echo $item->introtext; ?>
<?php endif; ?>
<?php if($params->get('itemIntroText')): ?>
<?php echo K2HelperUtilities::wordLimit($item->introtext,30); ?>
<?php endif; ?>
I've looked around and the only place I found this code was in modules/mod_k2_content/tmpl/default/default.php
But when I changed this, it still showed the whole article. Is there something I'm missing or maybe it's a different file I should be editing?
Please Log in or Create an account to join the conversation.
- Forum
- K2 Community Forum
- English K2 Community
- [SOLVED] IntroText words limit not working while selecting