Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-12-08 05:13:28

dada78
Member
From: New York
Registered: 2005-10-27
Posts: 138
Website

3-Column Layout & Articles?

To all Textpattern Gurus! I am a beginner so please be patient…

I have 3 columns in my layout. The first column should display one category of articles, say for example news stories and the second one should display another category of articles, say sports articles. (The third column is already set up as my navigation and works so far).

The second column has a slightly different layout (html), so I assume I would have to set up a new article form?

How would I go about this?

Do I just create a new form (article) and paste the html bits in there?

Say I have 2 divs: “column-one” and “column-two”, what tag would I need to use in between them?

Thanks so much for your help!
Dada

Offline

#2 2005-12-08 09:37:46

shafi707
Member
Registered: 2005-12-01
Posts: 17
Website

Re: 3-Column Layout & Articles?

I myself was thinking of doing that.. I really would love to get help…


http://tech-resource.info

Offline

#3 2005-12-08 14:40:40

variaas
Plugin Author
From: Chicago
Registered: 2005-01-16
Posts: 402
Website

Re: 3-Column Layout & Articles?

There are probably multiple ways of doing this, but I’ll start you guys off with the first way I can think of w/o plugins. You can use the article_custom tag. You can define which section, category, and more to display. If you want to display each column of articles in a different manner, you would create seperate article forms for each one. In the article_custom tag you can also define which article form to use.

You may also want to dig around the plugin section and search for category plugins. I’m sure there must be a couple plugins that could accomplish this task in other ways.

Good luck!

Offline

#4 2005-12-10 05:37:47

shafi707
Member
Registered: 2005-12-01
Posts: 17
Website

Re: 3-Column Layout & Articles?

Yeah that would help me, too.


http://tech-resource.info

Offline

#5 2005-12-11 03:58:21

Nichod
Member
Registered: 2005-06-06
Posts: 119

Re: 3-Column Layout & Articles?

You’ll place the following in each of the two columns along with whatever other formating information you’ll want: <code><txp:article_custom catergory=“sports” limit=“8” />

Make sure to read the link variaas gave above for more information. The catergory attribute labels that all articles you label as in the sports catergory will display in this column, and the limit states that only 8 articles will be allowed to display.

Essentially your columns would be formated kind like this (assuming you are using divs):

<code>
<div class=“stories”>
<txp:article_custom catergory=“stories” limit=“8” />
</div>
<div class=“sports”>
<txp:article_custom catergory=“sports” limit=“8”/>
</div>
<div class=“nav”>
navigation stuff here
</div>
</code>

Keep in mind I’m just showing you how to place the articles nothing else. Take a look at the default page for other items you might need and make sure to read the manual a bit and look at the various tags.

Cheers,
Brian

Offline

#6 2005-12-11 04:34:04

dada78
Member
From: New York
Registered: 2005-10-27
Posts: 138
Website

Re: 3-Column Layout & Articles?

Hi to all!
Thanks very much for the illustration. Very helpful.
Dada

Offline

Board footer

Powered by FluxBB