Advancednews in 2 columns
Moderator: Tata
Advancednews in 2 columns
Can somebody help me with this? I would like to show advanced news in two columns. But I don't know where and what to change. Is this possible at all? I use the latest free version of this plugin. Or is there any replacement for this plugin that vould me to show the news the way I would like it?
Nobody knows how much time he has left ...
http://oldnema.compsys.cz/en/?Demo_templates
http://oldnema.compsys.cz/en/?Demo_templates
Re: Advancednews in 2 columns
You can adjust the newsbox-width via CSS. Goto: CMSimple-Admin -> plugins -> Advancednews -> Plugin-Stylesheet and search for:....replace it with sometihng like that:This will shrink the boxes to half of content-width an collapse all available boxes into two columns.
The only thing to know: The order, the news are arranged is the newest on top left, the second on the right. The third and fourth news will be displayed in the second row ond so on...
mvwd.
Code: Select all
.show_news_box{
margin: 10px 0px 0px 0px;
width:100%;
}
Code: Select all
.show_news_box{
margin: 10px 0px 0px 0px;
width:49%;
float:left;
}
The only thing to know: The order, the news are arranged is the newest on top left, the second on the right. The third and fourth news will be displayed in the second row ond so on...
mvwd.
Re: Advancednews in 2 columns
Sorry for English, I use translator.
I know that it must change the CSS and the same solution I also came. The problem is that when I see read more column is wide, only 45%. I wanted to edit index.php but unfortunately it is encrypted
I know that it must change the CSS and the same solution I also came. The problem is that when I see read more column is wide, only 45%. I wanted to edit index.php but unfortunately it is encrypted
Nobody knows how much time he has left ...
http://oldnema.compsys.cz/en/?Demo_templates
http://oldnema.compsys.cz/en/?Demo_templates
Re: Advancednews in 2 columns
...sorry, i didn't understand your post. Maybe your translator made something wrong...
Eventually this helps:? Do you know, where to put this CSS-code?
mvwd.
Eventually this helps:
Code: Select all
.show_news_box{
margin: 10px 0px 0px 0px;
width:200px;
float:left;
}
mvwd.
Re: Advancednews in 2 columns
I used this code that the but cannot work:
First side is OK (screen1) -http://oldnema.compsys.cz/front_page.jpg
"Read more" is error, because in index.php is need add for example:
Sreen page "Read More" http://oldnema.compsys.cz/read_more.jpg
Do you get me?
Please Tata translate
Asi si nerozumíme. Nemůžu použít v CSS show_news_box o šířce sloupců například 45%, protože má pak šířku 45% i strana "Read more". Proto je potřeba přidat do strany index.php (která je ale zakodovaná!!) ještě jeden tag - například:
aby se pak strana "Read more" mohla zobrazit na šířku 100%.
Teď už mi rozumíte co potřebuji??
Code: Select all
.show_news_box
{
border: 1px solid #D8D8D8;
margin-right: 5px;
margin-left: 5px;
float: left;
width: 45%;
padding: 5px;
margin-bottom: 10px;
background-color: #ffffff;
}
First side is OK (screen1) -http://oldnema.compsys.cz/front_page.jpg
"Read more" is error, because in index.php is need add for example:
Code: Select all
.show_news_box2{
margin: 10px 0px 0px 0px;
float:left;
}
Do you get me?
Please Tata translate
Asi si nerozumíme. Nemůžu použít v CSS show_news_box o šířce sloupců například 45%, protože má pak šířku 45% i strana "Read more". Proto je potřeba přidat do strany index.php (která je ale zakodovaná!!) ještě jeden tag - například:
Code: Select all
.show_news_box2{
margin: 10px 0px 0px 0px;
float:left;
}
Teď už mi rozumíte co potřebuji??
Nobody knows how much time he has left ...
http://oldnema.compsys.cz/en/?Demo_templates
http://oldnema.compsys.cz/en/?Demo_templates
Re: Advancednews in 2 columns
Well, the point is that:oldnema wrote:Please Tata translate
IF I use
Code: Select all
.show_news_box
{
border: 1px solid #D8D8D8;
margin-right: 5px;
margin-left: 5px;
float: left;
width: 45%;
padding: 5px;
margin-bottom: 10px;
background-color: #ffffff;
}
Code: Select all
.show_news_box2{
margin: 10px 0px 0px 0px;
float:left;
}
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.
Re: Advancednews in 2 columns
...aah, i understand (thanx Tata ).
You can use this script to dynamically set the width/float of the css for the news:Use this instead of your original shownewsbox()-script.
Hope this helps.
mvwd.
You can use this script to dynamically set the width/float of the css for the news:
Code: Select all
#CMSimple $output=shownewsbox('showlatest=5,alwayspublish=true'); $hjs.=(!preg_match('"&id=[0-9]"si',$_SERVER['QUERY_STRING']))?'<style type="text/css">div.show_news_box{width:45%; float:left;}</style>':'';#
Hope this helps.
mvwd.
Re: Advancednews in 2 columns
You are a genius! Thank you so much and much! It works
Nobody knows how much time he has left ...
http://oldnema.compsys.cz/en/?Demo_templates
http://oldnema.compsys.cz/en/?Demo_templates