Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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
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
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