Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-01-19 05:14:56

KLS
Member
From: Singapore
Registered: 2005-12-26
Posts: 35
Website

2 Column content

Hello again. Im designing a 2 column website which will publish latest articles on one column and updates and new in the other. The question, how do i go about doing it so that the client can update both columns? Im puzzled as how to do this…

Thanks in advance.

Last edited by KLS (2006-01-19 05:15:31)

Offline

#2 2006-01-19 05:50:09

Jeremie
Member
From: Provence, France
Registered: 2004-08-11
Posts: 1,578
Website

Re: 2 Column content

You can do this automatically. Let’s say you want the latest article in column A in full body, and the rest of the articles in a list format in column B. You can do something like:

<code><div id=“colA”>
<txp:article form=“one article” limit=“1” />
</div>
<div id=“colB”>
<txp:article form“article list” offset=“1” limit=“15” />
</div></code>

Then write the two appropriate form, the first one with txp:body and such, the second one as a more condensed list.

Last edited by Jeremie (2006-01-19 05:53:11)

Offline

#3 2006-01-19 06:33:44

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: 2 Column content

Clear as mud what you mean by the difference between “latest articles” and “updates and new”, but the FAQ has a brief example of how to do columns, plus several pointers.


Alex

Offline

#4 2006-01-19 11:22:54

KLS
Member
From: Singapore
Registered: 2005-12-26
Posts: 35
Website

Re: 2 Column content

Pardon me, i was in rush previously.

The main page has two columns, left showing excerpts of blog posts/articles, right one showing, latest updates, changes and news regarding the site. I didn’t know with one form both the column can be dynamic. I’ll have a look again in the faqs and what Jeremie suggested.

Thank you both for your time. Will be posting again if i stumble across a problem.

Last edited by KLS (2006-01-19 11:24:09)

Offline

Board footer

Powered by FluxBB