Forums / Cotonti / Extensions / How to use the news plugin?

darkseeker
#1 2011-03-24 13:50

the news plugin is very useful.

but i find that the homepage looks horrible,when artilces are too long.

is there a method that can cut the articles on homepage,and just show part of them,for example,100-200 words.

i tried to do this,but failed.crying

please help me

pieter
#2 2011-03-24 14:29

add [ more ] without the space on the place where you want to break the news.

At this place you get read more... with a link to the page

... can we help you ...
darkseeker
#3 2011-03-24 15:20

thanks pietersmiley

another question:how to chagnge “read more” to other words?

Added 16 minutes later:

solved...edit "main.lang.php"

my head is a mess...so many problems are waiting for me

i've just found that the scroll is missing in some articles,but in others ,it is still there on the right...

This post was edited by darkseeker (2011-03-24 15:36, 13 years ago)
Kort
#4 2011-03-24 16:10

you shouldn't mess with main.lang.php, unless you're ready to lose your changes after an upgrade.

redeclare L.ReadMore in the skin.lang.php

SED.by - создание сайтов, разработка плагинов и тем для Котонти
darkseeker
#5 2011-03-24 16:22

thank u Kort,but i think it doesn't matter,i would edit the main.lang.php again after an upgrade

and do you know the above question about scroll?

pieter
#6 2011-03-24 16:33

Do you have an example. I don't know exacly what you mean.

... can we help you ...
darkseeker
#7 2011-03-24 17:43

thank you two good mensmiley

i've fixed it,a skin problem actually.