Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-05-24 17:31:24

alittle116
Member
From: Brooklyn
Registered: 2005-09-14
Posts: 72
Website

customizing/positioning comment preview window

i have created 2 column articles with the actual article in the left column and the comments/comment form in the right column and it looks perfect. however when i a write a comment and click preview, it really messes everything up (puts preview above comments, move everything to the other side of the article, etc..).

how can i control the position of the preview window?

Offline

#2 2006-05-24 20:42:01

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: customizing/positioning comment preview window

Offline

#3 2006-05-24 21:07:14

alittle116
Member
From: Brooklyn
Registered: 2005-09-14
Posts: 72
Website

Re: customizing/positioning comment preview window

where would i implement the code from that example?

Offline

#4 2006-05-24 21:31:06

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: customizing/positioning comment preview window

You can put it somewhere in the single article form, wherever you want the preview to be displayed. If you want it apart from the article, I suppose (haven’t done this myself) that you’d have to create a separate article form with this code, and call it on the page with
<code>
<txp:if_individual_article>
<txp:article form=“preview_form” />
</txp:if_individual_article>
</code>
(I think you’d need the if_individual_article tags for that.)

Offline

Board footer

Powered by FluxBB