Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
When there are comments errors
There are 2 things here relating to comment errors which I wouldn’t expect for 4.3.0 but I think they could do with being looked at.
The first and most important is that when in “comment preview” mode, if there are errors the “Submit” button should remain disabled="disabled"
along with class="disabled"
. It seems illogical to have an enabled button when there are errors. At the moment I can get around this with code like:-
<txp:if_comments_preview>
<txp:if_comments_error>
<input type="submit" value="Submit" name="submit" class="button disabled" id="txpCommentSubmit" disabled="disabled" />
<txp:else />
<txp:comment_submit />
</txp:if_comments_error>
<txp:else />
<txp:comment_submit />
</txp:if_comments_preview>
I usually have that all on one line. I’ve separated it here for clarity but either way it’s rather long-winded isn’t it? Methinks it should be automatic.
The second might just be me trying to be clever and hitting a brick wall but it would be nice if the <txp:if_comments_error />
tag worked outside the comment_form
form. I’ve just been trying to do something with it in the comments_display
form without success. Not sure if this is at all possible??
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline