Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2012-02-03 02:47:42

loveangel
Member
From: Canada
Registered: 2009-10-02
Posts: 24
Website

How do I make left and right columns in my article?

Hello,

I have searched through the help topics and only found an answer to how to use left and right columns by adding a plug in. I don’t want to use a plug in at this time. Could you either point me to the specific help topic or explain how I can do this?

Thank you,
Nancy

Offline

#2 2012-02-03 08:55:54

totoff
Member
From: Cologne, Germany
Registered: 2011-04-04
Posts: 145
Website

Re: How do I make left and right columns in my article?

hi nancy,

i understand from your post that you would like to assign an article either to the left or right column. one possible solution is to assign the article via a custom field (e.g. “left” and “right”). inside your form or template you restrict the article output to these custom fields: <txp:article custom_1="left" />

hope that helps

Offline

#3 2012-02-03 09:05:46

Dragondz
Moderator
From: Algérie
Registered: 2005-06-12
Posts: 1,529
Website GitHub Twitter

Re: How do I make left and right columns in my article?

Hi Nancy

if you are using a standard textpattern page, go to the page tab in textpattern admin, and find left div and right and then put there an txp:article_custom with the desired category, section or id and then that will be done.

Cheers

Offline

#4 2012-02-03 14:19:48

loveangel
Member
From: Canada
Registered: 2009-10-02
Posts: 24
Website

Re: How do I make left and right columns in my article?

Dragondz,
It appears as though I do not have a left div and right in the TXPadmin page.

Totoff,
I only want to assign a portion of the article a left/right column, not the whole article.

Offline

#5 2012-02-03 15:16:07

michaelkpate
Moderator
From: Avon Park, FL
Registered: 2004-02-24
Posts: 1,379
Website GitHub Mastodon

Re: How do I make left and right columns in my article?

You could use the body field in one column and the excerpt field in the other.

Offline

#6 2012-02-03 15:40:01

loveangel
Member
From: Canada
Registered: 2009-10-02
Posts: 24
Website

Re: How do I make left and right columns in my article?

Hello Michael,

I could, if I had knew what that meant. I just barely get by in TXP. I’m not proficient at it by any means.

I feel I’m just missing one piece of the puzzle.

If this is the code that is in my article body on the Write page, I have a sense that something else goes somewhere else to make this work. I just don’t know what or where.

<txp:image id=“403” class=“image” />

What do I do?

In plain and simple terms…

I help you Turn the Page
to the next chapter of your
life by inspiring you to
“write” the story
YOU
you want to live.

<div style=“clear:both;height:1px;”>&nbsp;</div>

Offline

#7 2012-02-03 15:47:24

michaelkpate
Moderator
From: Avon Park, FL
Registered: 2004-02-24
Posts: 1,379
Website GitHub Mastodon

Re: How do I make left and right columns in my article?

On the Write Page of the Content Tab in the you get three boxes by default: Title, Body, and Excerpt.

Anything that goes into Body can be output by using:

<txp:body />

Anything that goes into Except can be output by using:

<txp:excerpt />

This essentially gives you two fields to work with when inputting content before you have to try something complicated.

Offline

#8 2012-02-03 16:01:16

Dragondz
Moderator
From: Algérie
Registered: 2005-06-12
Posts: 1,529
Website GitHub Twitter

Re: How do I make left and right columns in my article?

Hi Nancy

To view an article on left or right column it must coded into page tab using proper textpattern tag (page tab is under Presentation tab and you only have to wrtie it in write tab and give it the right category or section, but it seems it s not the case here (or am i mistaken)

I am also thinking i am missing something in understanding your request!

Offline

#9 2012-02-03 16:07:09

loveangel
Member
From: Canada
Registered: 2009-10-02
Posts: 24
Website

Re: How do I make left and right columns in my article?

I think you’re right. I just need to code it into the right place.

What exactly do I need to write in and where exactly do I put it?

I am fine using:

<txp:image id=“403” class=“image” />

What do I do?

<div style=“clear:both;height:1px;”>&nbsp;</div>

I copied this from my site where it works. It’s not set up like that on my itsmostlyaboutsex.com site.

Offline

#10 2012-02-03 17:30:00

Dragondz
Moderator
From: Algérie
Registered: 2005-06-12
Posts: 1,529
Website GitHub Twitter

Re: How do I make left and right columns in my article?

We need to view the page tab, can copy/past it here (using a bc.. before to format it properly in the forum)

Offline

#11 2012-02-03 17:35:07

loveangel
Member
From: Canada
Registered: 2009-10-02
Posts: 24
Website

Re: How do I make left and right columns in my article?

I don’t know what bc.. means but I hope I did it correctly.

<txp:output_form form="DTD_head" />

</head>
<body id="home">

<h1>It's Mostly About Sex... And The Pleasures of Pleasing A Woman</h1>

<div id="wrapper">

<div id="container" class="clearfix">

<div id="contentOuter">
<div id="content">
<div id="contentInner">

<txp:article limit="1" />

</div><!-- close contentInner -->

<txp:output_form form="footer" />

</div> <!-- close content -->
</div> <!-- close contentOuter -->
</div> <!-- close container -->
</div> <!-- close wrapper -->

<txp:output_form form="analytics" />

</body>
</html>

{Corrected the use of bc.. – Uli}

Last edited by uli (2012-02-03 20:57:54)

Offline

#12 2012-02-03 18:15:42

Dragondz
Moderator
From: Algérie
Registered: 2005-06-12
Posts: 1,529
Website GitHub Twitter

Re: How do I make left and right columns in my article?

hi

the bc.. help formating code on the forum and you must do like that

bc.. <txp:output_form....

but anyway: your code seems it s a one column design, where do you want to have a left column and a right column? (i see also the website http://itsmostlyaboutsex.nancymurdoch.com/)

Offline

Board footer

Powered by FluxBB