Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-08-15 20:31:47

theinterned
New Member
From: Montreal, Canada
Registered: 2007-08-13
Posts: 9
Website

repositioning the comment form submit button

Hello,

I was wondering if it was possible to reposition the “submit” button OUTSIDE of the comment_form form?

I have my preview showing up in another part of the page from the comment form and it would seem more intuitive to have the submit button in the same location as the the preview…

thanks!

Offline

#2 2007-08-15 21:27:59

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: repositioning the comment form submit button

Well, it have to be inside the form, because it send that particular form. Outside that outputted a (X)HTML-form, it just won’t do nothing. It’s because it’s against the laws of nature.

But you can use a XHTML-trick or the CSS absolute-positioning.

With (X)HTML, put this where you want the button be placed

<txp:if_comments_preview>
<label for="txpCommentSubmit">Submit</label>
</txp:if_comments_preview>

Cheers!

Last edited by Gocom (2007-08-15 21:29:01)

Offline

#3 2007-08-15 21:50:21

theinterned
New Member
From: Montreal, Canada
Registered: 2007-08-13
Posts: 9
Website

Re: repositioning the comment form submit button

Oh!

I think I get it; that is so clever!

use the label as the clickable element and hide the button!

nice!

Offline

Board footer

Powered by FluxBB