Keyword

Advanced Search

Search Results (Searched for: IntroText words limit not working while selecting)

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
28 Nov 2014 12:39
Replied by Krikor Boghossian on topic [SOLVED] IntroText words limit not working while selecting

[SOLVED] IntroText words limit not working while selecting

Category: English K2 Community

Since this considered a hack, you need to keep backups of your edited files, and apply this patch every time you update K2.
  • Syed Raza Imam Naqvi
  • Syed Raza Imam Naqvi's Avatar
27 Nov 2014 22:18 - 27 Nov 2014 22:21
Replied by Syed Raza Imam Naqvi on topic [SOLVED] IntroText words limit not working while selecting

[SOLVED] IntroText words limit not working while selecting

Category: English K2 Community

I got the solution.

When we are showing items from more than 1 category K2 is not showing introText, to handle this issue Manoj has given the solution but I have modified it. Because Manoj Solution also limiting body text to introText when viewing Item.

Step 1. Open file item.php at location \components\com_k2\models\
Step 2. Find following line :
if ($item->params->get('catItemIntroTextWordLimit') && $task == 'category')

Step 3. Replace it with following :
if ($item->params->get('catItemIntroTextWordLimit') && ($view == 'itemlist' && ($task == 'category' || $task == 'user' || $task == 'tag' || $task == 'date' || $task == 'search' || $task == 'itemlist' || $task == '' )))

After this hack K2 will show items from multiple categories with introText and when you will try to see single Item, K2 will show item with fullText.
  • JoomlaWorks
  • JoomlaWorks's Avatar
27 Nov 2014 17:30

[SOLVED] IntroText words limit not working while selecting

Category: English K2 Community

This solution is simply calling an internal function in K2 for enforcing a word limit to any text field output. If you want to limit your introtext, look in the category settings. No need to touch any code.
  • Syed Raza Imam Naqvi
  • Syed Raza Imam Naqvi's Avatar
27 Nov 2014 16:36
Replied by Syed Raza Imam Naqvi on topic [SOLVED] IntroText words limit not working while selecting

[SOLVED] IntroText words limit not working while selecting

Category: English K2 Community

Great Solution for the issue but I have question

I have implemented your solution but when I am trying to view any item...................item is only showing introText instead Full text. What is the solution for this?

Regards
  • Tariq
  • Tariq's Avatar
14 Feb 2014 22:33

[SOLVED] IntroText words limit not working while selecting

Category: English K2 Community

This solution work very fine for me,
My question now, Why this did not inserted by K2 developers if its really important by default?
  • Marius Olbert
  • Marius Olbert's Avatar
18 Oct 2013 12:57 - 18 Oct 2013 12:57

[SOLVED] IntroText words limit not working while selecting

Category: English K2 Community

Thanks it also works with Joomla 3.0.3 Stable

P.S. OM SHANTI :)
  • v.v. SVA Assendelft
  • v.v. SVA Assendelft's Avatar
18 May 2013 10:11
Replied by v.v. SVA Assendelft on topic [SOLVED] IntroText words limit not working while selecting

[SOLVED] IntroText words limit not working while selecting

Category: English K2 Community

OM SHANTI

This solution works well with K2 2.6.6 !! Thnx very much Manoj!
  • Solomon Hodge
  • Solomon Hodge's Avatar
09 Apr 2013 20:41

Category Blog intro text word limit not working

Category: English K2 Community

Hi there,

I've searched this forum high and low, but can't seem to find an exact answer to this, so hopefully someone can assist! As a preface, I have quite a few websites where this is the exact same problem, spanning several years of development, so it's not an isolated issue for me, and clearly I'm missing something.

Here's an example case problem:
- I set up a category on my website titled "Latest News".
- Under "Item view options in category listings" I set introtext to "Show" and Introtext word limit to a random number.
- I create a new Category Blog menu item for the "Latest News" category and save.

In theory, I know that clicking on the menu item should produce a blog with a word limit in effect, followed by a read more button. Instead, I get the entire contents of the content text.

I'm trying to make my sites super easy to use for clients, but this one blog issue has baffled me. I have attempted to try all the tricks shown in this post:
getk2.org/community/New-to-K2-Ask-here-first/13197-IntroText-words-limit-not-working-while-selecting
but no luck.

I do have custom K2 files in my template folder, and am fairly comfortable with editing them. Any advice would be appreciated deeply!

Thanks!
  • Florian Ughetto
  • Florian Ughetto's Avatar
23 Feb 2013 00:04

[SOLVED] IntroText words limit not working while selecting

Category: English K2 Community

Hello !

Ouah ! that's working like a charm ! However do you know how to don't get the world limit when you're in the normal page ?

Coz now i also have to click on read more when I should be on the normal page.

Tks a lot !
  • M@tin
  • M@tin's Avatar
11 Feb 2013 16:17

[SOLVED] IntroText words limit not working while selecting

Category: English K2 Community

It really works. Say "OM SHANTI" for Manoj.. :woohoo: :evil: :whistle: :silly: :sick:
  • Russell English
  • Russell English's Avatar
25 Jan 2013 12:51 - 25 Jan 2013 12:52

[SOLVED] IntroText words limit not working while selecting

Category: English K2 Community

I was looking for a similar solution to this, but wanted to limit the category intro text (rather than the item intro text).

The solution was:

Go to your relevant template folder (in this case we'll use default):

/components/com_k2/templates/default

and open category.php

find the following:
<?php if($this->params->get('subCatDescription')): ?> <!-- Subcategory description --> <?php echo $subCategory->description; ?> <?php endif; ?>

and replace with the following:
<?php if($this->params->get('subCatDescription')): ?> <!-- Subcategory description --> <?php echo K2HelperUtilities::wordLimit($subCategory->description,30); ?> <?php endif; ?>

The 30 above is the word limit. Hope this helps
  • Jofeltje
  • Jofeltje's Avatar
  • Matt Bryan
  • Matt Bryan's Avatar
19 Jan 2013 01:22

[SOLVED] IntroText words limit not working while selecting

Category: English K2 Community

:woohoo:
Thank you Manoj Goel for a fix dearly needed in the K2 source! It is working great in Joomla! 2.5.8 with latest version of K2.
  • Lefteris
  • Lefteris's Avatar
26 Jul 2012 12:20

[SOLVED] How to limit introtext on multi-category menu page

Category: English K2 Community

Hi. Regarding the seperation of introtext and fulltext K2 has an option for that. You can find it under K2 Parameters. Regarding the introtext word limit, it is not supported on multiple categories but you may want to take a look at getk2.org/community/New-to-K2-Ask-here-first/13197-IntroText-words-limit-not-working-while-selecting
  • Dmitriy
  • Dmitriy's Avatar
11 Jul 2012 12:49

[SOLVED] IntroText words limit not working while selecting

Category: English K2 Community

Manoj Goel YOU BEST ! thx all work like a clock :woohoo:
PS Joomla 1.5.2 + K2 2.5.1
  • Manoj Goel
  • Manoj Goel's Avatar
06 Jul 2012 11:57

[SOLVED] IntroText words limit not working while selecting

Category: English K2 Community

:) Hey Guys here is the simple solution :)

Step 1. Open file item.php at location \components\com_k2\models\
Step 2. Find following line :
 
  • Dmitriy
  • Dmitriy's Avatar
04 Jul 2012 07:20 - 04 Jul 2012 07:21
  • lamvt
  • lamvt's Avatar
03 Jul 2012 18:28

[SOLVED] IntroText words limit not working while selecting

Category: English K2 Community

2 Solutions for you:
joomquery.com/en/joomla/25-the-project/7912-k2-components-word-limit-introtext-modk2content-not-working-joomla-25.html
1. hack core to add code to your module k2_content
2. Overwrite to your template: add code to your template (Recommended)
Goodluck
  • Dmitriy
  • Dmitriy's Avatar
02 Jul 2012 20:39
Displaying 1 - 20 out of 33 results.