Column layout.

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
johnn
Posts: 50
Joined: Mon 10. Apr 2006, 14:07

Column layout.

Post 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
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Re: Column layout.

Post 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
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
johnn
Posts: 50
Joined: Mon 10. Apr 2006, 14:07

Re: Column layout.

Post 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.
johnn
Posts: 50
Joined: Mon 10. Apr 2006, 14:07

Re: Column layout.

Post 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.
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Re: Column layout.

Post by flip-flop »

Oh sorry, you are right. :oops:

Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
Post Reply