Keyword

Intro text in manu-item mapped for more categories

  • Peter Blue
  • Peter Blue's Avatar Topic Author
  • Offline
  • New Member
More
11 years 4 months ago #114379 by Peter Blue
Hello,
I tried searching answer for this problem but I didnt find one that works for me.

I have mapped menu-item for 5 categories so I have page where content of all 5 categories is visible.
I would like to make intro item text to be 60 words for this menu item mapped with 5 categories - where you can see content from all 5 categories.

For each of 5 categories I was able to set intro text to 30 words in specific category options for each category but I cant do same from page where I can see all 5 categories.

I found this post getk2.org/community/advsearch?q=intro+text&exactname=1&childforums=1&limit=5&start=15 where advice is to change <?php echo $item->introtext; ?> for <?php echo K2HelperUtilities::wordLimit($item->introtext, 100); ?> in category_item.php but it dint work becouse item intro text disappeared in all of categories.

I also found that other users have same problem but I didnt find solution for this.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
11 years 4 months ago #114380 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Intro text in manu-item mapped for more categories
Hello Peter,

You need to first set an introtext for this to work.

You can either manually specify an introtext using your editor's read more button or enable two seperate editors one for introtext and one for full text.

This can be done through K2's parameters.

In my experience the second solution is much more reliable and bulletproof.

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

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

  • Peter Blue
  • Peter Blue's Avatar Topic Author
  • Offline
  • New Member
More
11 years 4 months ago #114381 by Peter Blue
Thanks,I will go with that second soulution.

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

  • Voiceconnect Internet Solutions
  • Voiceconnect Internet Solutions's Avatar
  • Offline
  • Junior Member
More
11 years 3 months ago #114382 by Voiceconnect Internet Solutions
Replied by Voiceconnect Internet Solutions on topic Re: Intro text in manu-item mapped for more categories
this solution used to work as i previously used it, to have asetting to set the intro text in item is cool feature but now you tell me that i must go back to all items to set a read more on it is to say the least a bit dof. hacking a template override is fine, but going to each item to set a read more is not on - i will look further for other kind of solution...

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

  • Voiceconnect Internet Solutions
  • Voiceconnect Internet Solutions's Avatar
  • Offline
  • Junior Member
More
11 years 3 months ago #114383 by Voiceconnect Internet Solutions
Replied by Voiceconnect Internet Solutions on topic Re: Intro text in manu-item mapped for more categories
i implemented a css solution - i do not like it but it works

div.tagItemIntroText {
padding: 0;
height: 92px;
overflow: hidden;
}

div.tagItemIntroText p {
margin:0;
}

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


Powered by Kunena Forum