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
Problem Limiting news (solved)
Problem Limiting news (solved)
Last edited by abster on Sun Oct 07, 2007 10:45 am, edited 1 time in total.
Re: Problem Limiting news
Scott,
news has several parameters that can be called, Check the help
"Content -> News -> Help"
Ronny
news has several parameters that can be called, Check the help
"Content -> News -> Help"
Why do you use a TD around the calling, cant you use a container and style that.(optional) number="5" - Maximum number of items to display =- leaving empty will show all items.
Ronny
Re: Problem Limiting news
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
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
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
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)
Good practise is to use lower case in the HTML and CSS...
Or it won't be xhtml compliant...
Or it won't be xhtml compliant...