-
AuthorPosts
-
Kovou Friend
Kovou
- Join date:
- July 2012
- Posts:
- 26
- Downloads:
- 9
- Uploads:
- 3
- Thanks:
- 12
- Thanked:
- 1 times in 1 posts
July 26, 2012 at 8:53 am #179412Hi all
When i create articles in specific category and trying to view it as category blog item menu, the articles dosent display as the article. For example i want to show an unordered list with specific style more than 300 chars and when we go to category blog view the article is cuted to 50 chars without style and without unordered list.
Is there any code cousing that? If yes tell me where, to cut it out
Please your help we be valuable
Thanks
arucardx Friendarucardx
- Join date:
- July 2010
- Posts:
- 346
- Downloads:
- 0
- Uploads:
- 10
- Thanks:
- 21
- Thanked:
- 138 times in 104 posts
July 26, 2012 at 9:25 am #462283Link to your website with directions to where the problem is found? I don’t understand what you’re trying to ask but I do know that K2 has a parameter for intro text cut off. Though styles assuming you mean extra fields are manually added to each articles. Unordered I suppose would be sort by random?
Can’t really help you without any visual aid.
Kovou FriendKovou
- Join date:
- July 2012
- Posts:
- 26
- Downloads:
- 9
- Uploads:
- 3
- Thanks:
- 12
- Thanked:
- 1 times in 1 posts
July 26, 2012 at 10:50 am #462292I’m posting images to show you the problem
Tell me if you want more information
Thanks
- arucardx Friend
arucardx
- Join date:
- July 2010
- Posts:
- 346
- Downloads:
- 0
- Uploads:
- 10
- Thanks:
- 21
- Thanked:
- 138 times in 104 posts
July 26, 2012 at 5:22 pm #462322For the sorting, try going to Menu Manager -> Top -> Your category.
1) Expand Blog Layout Options on the left.
2) Set Category Order to No Order?I don’t see any intro text being cut off in your picture too. Though I don’t understand why there’s two same articles being shown on homepage.
Sherlock FriendSherlock
- Join date:
- September 2014
- Posts:
- 11453
- Downloads:
- 0
- Uploads:
- 88
- Thanks:
- 221
- Thanked:
- 2478 times in 2162 posts
July 27, 2012 at 9:35 am #462401<em>@xkovou 331827 wrote:</em><blockquote>Hi all
When i create articles in specific category and trying to view it as category blog item menu, the articles dosent display as the article. For example i want to show an unordered list with specific style more than 300 chars and when we go to category blog view the article is cuted to 50 chars without style and without unordered list.
Is there any code cousing that? If yes tell me where, to cut it out
Please your help we be valuable
Thanks</blockquote>
Hi xkovou,
That’s by default, In the category blog view it only show the introtext section of articles, Do you want to show fulltext article content ?
Kovou FriendKovou
- Join date:
- July 2012
- Posts:
- 26
- Downloads:
- 9
- Uploads:
- 3
- Thanks:
- 12
- Thanked:
- 1 times in 1 posts
July 28, 2012 at 6:45 am #462451Hi sherlock
I know that by default the category shows only the introtext. I want in the category blog view and when the introtex shows, the styles of the text not be changed.
For example, see here http://edu1.lifedesign.gr/index.php/k2
In this article we have colors, bolds and italics at introtext, but when we are on category blog we can see only bold styles. I want the introtext display all stylles, like collors italics and unordered lists.
Sherlock FriendSherlock
- Join date:
- September 2014
- Posts:
- 11453
- Downloads:
- 0
- Uploads:
- 88
- Thanks:
- 221
- Thanked:
- 2478 times in 2162 posts
July 30, 2012 at 4:59 am #462532Hi xkovou,
You could open the file of templatesja_wallhtmlcom_contentcategoryblog_item.php look for this snap of code and remove it
[PHP]
// get first paragraph
$regex = ‘#<p[^>]*>(.*)</p>#i’;
if (preg_match_all ($regex, $introtext, $matches)) {
$p = array();
$c = 0;
foreach ($matches[1] as $match) {
$t = trim(strip_tags ($match, ‘<a><b><strong><br><font><i>’));
if ($t) $p[] = $t;
$c += strlen($t);
if ($c > 50) break;
}
$introtext = implode (‘<br />’, $p);
} else {
$introtext = trim(strip_tags ($introtext, ‘<a><b><strong><br><font><i>’));
}[/PHP]
That would help to keep the original text of introtext section 🙂
1 user says Thank You to Sherlock for this useful post
AuthorPostsViewing 8 posts - 1 through 8 (of 8 total)This topic contains 8 replies, has 3 voices, and was last updated by Kovou 12 years, 4 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Jump to forum