-
AuthorPosts
-
joachim funk Friend
joachim funk
- Join date:
- January 2013
- Posts:
- 45
- Downloads:
- 4
- Uploads:
- 7
- Thanks:
- 15
- Thanked:
- 3 times in 1 posts
March 9, 2014 at 9:10 pm #195617Hi!
I want to make a few changes for the description of articles in the grid-view. First, I’ve increased the height in my custom.css:
.fixel-grid .items.image.rotateY article .back .article-intro {
height: 100px;
}
Now, I want to truncate the description-string with a PHP-function to cut the string behind the last word – not somewhere between the letters. Where do I have to place the PHP-Code? Thanks for your help!
Edit: I recognized, that the whole text of the article is loaded – so I think, I’ve to do it with JavaScript. Could someone tell me, where the right .php-file is located?
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
joachim funk Friendjoachim funk
- Join date:
- January 2013
- Posts:
- 45
- Downloads:
- 4
- Uploads:
- 7
- Thanks:
- 15
- Thanked:
- 3 times in 1 posts
March 10, 2014 at 4:13 pm #526113Thanks – I’ve tried it, but without success. I will do some more checks the next days…
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
March 11, 2014 at 8:09 am #526244Can you send me the URL of your site and screenshot to illustrate where you need to truncate the description of articles?
I will have a closer look and give you suggestion then.
joachim funk Friendjoachim funk
- Join date:
- January 2013
- Posts:
- 45
- Downloads:
- 4
- Uploads:
- 7
- Thanks:
- 15
- Thanked:
- 3 times in 1 posts
March 11, 2014 at 10:34 am #526267Hi Ninja!
I’ve sent you a PM…
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
March 12, 2014 at 4:23 am #526399Thanks for your pm. Please follow steps below:
+ Download and extract my attached file
+ Copy default_item_images.php file into templates/ja_fixel/html/com_content/featured/ folder (Please back-up your old file first)
+ In the default_item_images.php file, you will see the limit text: 50. You can change the value as you wish.
<?php echo cut_string($this->item->introtext, 50); ?>
1 user says Thank You to Ninja Lead for this useful post
joachim funk Friendjoachim funk
- Join date:
- January 2013
- Posts:
- 45
- Downloads:
- 4
- Uploads:
- 7
- Thanks:
- 15
- Thanked:
- 3 times in 1 posts
March 12, 2014 at 9:16 am #526442Hi Ninja!
wow – thank’s a lot! That’s exactly what I want; works fine!
-
AuthorPosts
This topic contains 7 replies, has 2 voices, and was last updated by joachim funk 10 years, 8 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum