Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2006-12-05 20:41:35
- wii
- Member
- Registered: 2005-05-08
- Posts: 77
2 Columns in 1 Page ?
I´m working on this:
As you can see the main text is at the right side, but I would like to add additional text on the left side, how do I include this, so the same article has 2 columns ? I´m using this for the main text to the right:
<div id=“right”>
<txp:article form=“default” listform=“default” />
</div>
Default form just looks like this:
<txp:body />
Thanks
Last edited by wii (2006-12-05 22:33:46)
Offline
#2 2006-12-05 20:53:33
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: 2 Columns in 1 Page ?
So, you want to split the article body into two columns, or you just want a second column?
Offline
#3 2006-12-05 21:10:28
- wii
- Member
- Registered: 2005-05-08
- Posts: 77
Re: 2 Columns in 1 Page ?
What´s the difference ? I think I want to split the article body.
Offline
#4 2006-12-05 21:12:53
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: 2 Columns in 1 Page ?
Then the link I provided points to a plugin that will do that. :)
The difference: I was asking whether you needed to have the article body itself displaying in two columns (plugin+markup+style), or if you just wanted a second column on your page that would hold something else (purely markup+style problem).
Offline
#5 2006-12-05 21:18:49
- wii
- Member
- Registered: 2005-05-08
- Posts: 77
Re: 2 Columns in 1 Page ?
Ok, I installed the plugin, not sure about how to use – the documentation just says:
Drop-in replacement for <txp:body />.
This plugin will produce two divs, ‘leftCol’ and ‘rightCol’,
and split the paragraphs of the body between them. To achieve
a two-column layout, float both divs to one side.
In my CSS I have a left and a right column already, how do I make the plugin work with my style ?
Thanks
Offline
Re: 2 Columns in 1 Page ?
I think you have to rename your columns to ‘leftCol’ and ‘rightCol’. The plugin needs those specific names. Then, the plugin will split your text between the two columns.
…Prrrrrrrr…
Offline
#7 2006-12-05 21:33:48
- wii
- Member
- Registered: 2005-05-08
- Posts: 77
Re: 2 Columns in 1 Page ?
Ok, I did it – but how do I insert the left column text then ? and keep the right as it is ?
As you can see the left and right has the same text.
Last edited by wii (2006-12-05 22:34:23)
Offline
Re: 2 Columns in 1 Page ?
First: I believe you didn’t close your <div id="outer" >
. I don’t think this has anything to do with it, but I just noticed… :-)
Second: you used two capitals in LeftCol, while your example only had one: leftCol. The plugin probably is case-sensitive, so it doesn’t recognize your CSS.
Third: where did you place your <txp: body />
?
…Prrrrrrrr…
Offline
#9 2006-12-05 21:44:50
- wii
- Member
- Registered: 2005-05-08
- Posts: 77
Re: 2 Columns in 1 Page ?
Hang on…..
Offline
Pages: 1