Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-03-11 18:09:40

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

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>

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

#3 2007-03-12 12:21:40

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

Re: if_comments_error --> no preview

Mary,
Thanks for the tip about putting it in the comments_form form.
:)
Matthew


Offline

Board footer

Powered by FluxBB