Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
if_comments_error --> no preview
I’d like to figure out the condition where if the comments for has an error, it would not show a preview of the comment as I feel like that’s confusing to the user. Someone feel differently? I’d love to hear.
In the meantime, I tried this and it didn’t work. Probably due to some of the conditional tags disliking multiple nesting more than others. Anybody have any ideas?
Matthew
<txp:if_comments_error>
<txp:else />
<txp:if_comments_preview>
<div id="cpreview">
<h3 class="note">This is only a preview of your comment, make changes, or <a href="#publish">submit</a> your comment to finish.</h3>
<txp:comments_preview />
</div>
</txp:if_comments_preview>
</txp:if_comments_error>
- I am Squared Eye and I
am launchinghave launched Pattern Tap
Offline
#2 2007-03-12 04:59:03
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: if_comments_error --> no preview
…conditional tags disliking multiple nesting more than others.
As far as I’m aware, that’s a non-existent problem.
Its because the comments_error
and if_comments_error
tags only work from the comment_form
form. Put your tags as-is in there, and it works fine. :)
Offline
Re: if_comments_error --> no preview
Mary,
Thanks for the tip about putting it in the comments_form form.
:)
Matthew
- I am Squared Eye and I
am launchinghave launched Pattern Tap
Offline
Pages: 1