Page 1 of 1

Problem Limiting news (solved)

Posted: Thu Oct 04, 2007 10:47 am
by abster
hi

First go at a template, im having problems stopping the news from breaking my box at the top shown here and wondered if any masters know a quick fix.

www.scottmcardle.co.uk/cms

code for news is:
{cms_module module="news"}

When the summary is too big it throws out formatting.

Can i limit the number of items that will appear, or fix the number of lines to show?

Also, if the tag is on news it seems to add new tags that arent in the news setup eg

Kind Regards
Scott

Re: Problem Limiting news

Posted: Thu Oct 04, 2007 10:55 am
by RonnyK
Scott,

news has several parameters that can be called, Check the help

"Content -> News -> Help"
(optional) number="5" - Maximum number of items to display =- leaving empty will show all items.
Why do you use a TD around the calling, cant you use a container and style that.

Ronny

Re: Problem Limiting news

Posted: Thu Oct 04, 2007 11:20 am
by abster
do you mean a

im not totally up on my html.

thanks
Scott

Re: Problem Limiting news

Posted: Thu Oct 04, 2007 12:44 pm
by RonnyK
Scott,

Yes I meant a . Why don't you use a div, is the news only allowed to have a certain height, or do you want it shown inside a box.

I call it f.e. on www.terspille.nl on the homepage, where the news is shown inside a box, the height is variable!

Ronny

Re: Problem Limiting news

Posted: Thu Oct 04, 2007 3:26 pm
by abster
yes, i dont want the box to go above height="205"

thanks
Scott

Re: Problem Limiting news

Posted: Fri Oct 05, 2007 10:32 am
by abster
ronny

thanks, ive taken your advice and although not entirely up on my css

ive done this

div.container {
  height: 205px;
  width: 244px;
  overflow: auto;
  font-size : 11px;
  font-family : Tahoma,Verdana,Arial;
  text-decoration: none;
  -moz-box-sizing: border-box;
}
/*
Spacer Div
*/
div.spacer{
clear: both !important;
}


HTML

{cms_module module="news" number="1"}


i limited the news to 1, but it works with the scroller if the summarys are too big, i'll probably set it back to 5 and tell the client to keep summarys short.

Thanks for pointing me in the right direction, long way to go to get it looking right.

Thanks
Scott

Re: Problem Limiting news (solved)

Posted: Mon Oct 08, 2007 3:06 am
by Dr.CSS
Good practise is to use lower case in the HTML and CSS...

Or it won't be xhtml compliant...