Page 1 of 1
Column layout.
Posted: Fri 2. Jan 2009, 12:09
by johnn
Hi, is there any way to display cp teaser in 2-column layout?
Or any way to show latest articles, but in columns, not one after another.
phpwcms ver. 1.3.3
Re: Column layout.
Posted: Fri 2. Jan 2009, 22:28
by flip-flop
Hi,
mhh, if I undastand you right you need a little bit more css.
e.g. in teaser template:
Code: Select all
<!--TEASER_HEAD_START//-->
<div style="width: 500px;">
<!--TEASER_HEAD_END//-->
<!--TEASER_ENTRY_START//-->
<div style="float: left; width= 245px; padding-left: 4px;">
...... teaser ......
</div>
<!--TEASER_ENTRY_END//-->
<!--TEASER_FOOTER_START//-->
<div style="clear:both;height:1px"></div>
</div>
<!--TEASER_FOOTER_END//-->
Or any way to show latest articles, but in columns, not one after another.
I don“t understand your question. -> teaser cp or related tag ot new tag???
Knut
Re: Column layout.
Posted: Sat 3. Jan 2009, 11:25
by johnn
Thanks, that did it.
But there are a few problems.
1) The columns are not fixed width. If the article title is longer they stretch.
2) If i include the article summary in the listing template, there is only one column with 100% width.
So the longer the text, the wider the column is. And if the text is too long there is only one column.
Re: Column layout.
Posted: Sat 3. Jan 2009, 12:04
by johnn
Aah...found the error.
Code: Select all
<div style="float: left; width= 245px; padding-left: 4px;">
Where width is, should be:
Code: Select all
<div style="float: left; width: 245px; padding-left: 4px;">
Thanks again.
Re: Column layout.
Posted: Sat 3. Jan 2009, 16:18
by flip-flop
Oh sorry, you are right.
Knut