Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
comment preview display confusion
Hello everybody,
I’ve just upgraded to the latest txp version,it has been some time since i last played with it.
Anyways, after upgrading, i noticed my preview message is append below the post and below the other comments. I [url=http://textpattern.com/faq/215/comment-input-form-changes]took a look in the faq[/url] and realised im experiencing problem 1, my anchor doesnt seem to work, any ideas what im missing and how to go about rectifying it so that my preview is always visible after previewing?
my link is at http://khairudinlee.com/journal
try do a test preview to see what i mean by the anchor doesnt work.
Thanks for taking a look.
Offline
#2 2006-11-10 12:02:22
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: comment preview display confusion
I have something like this in my single article form, don’t know if it’s the best way to do it but it works:
(first the title and body tags etc.)
<txp:comments />
<txp:if_comments_preview>
<div id="cpreview">
<txp:comments_preview form="comments" />
<txp:comments_form preview="1" />
</div>
<txp:else />
<a name="comment"></a>
<h4>Comment</h4>
<txp:comments_form />
</txp:if_comments_preview>
So you can also move the preview to above the article if you’d wish to do so.
Offline
Re: comment preview display confusion
Els,
Thanks for replying, though i still dont get you.
Im just wondering why my anchor isn’t working, i didnt change anything apart from upgrading to 4.0.4…
Offline
Re: comment preview display confusion
Textpattern makes use of some “built-in” anchors, it seems that with the latest change in the commenting, those anchors are no longer automatically added, i.e., currently you’d have to place them manually (by attaching id=”…” to some html-tag). I am not sure whether this is intentional, or should be considered a bug. I’ll check and get back…
Offline
Re: comment preview display confusion
Senser,
Thanks, looking forward to your response.
Offline
#6 2006-11-13 08:19:23
- jnfor
- New Member
- Registered: 2006-08-18
- Posts: 5
Re: comment preview display confusion
I would be happy to know too… it’s a big problem for me.
Offline
Re: comment preview display confusion
It seems that the id/anchor was added to the default template, and therefore removed from the output of the tag (or maybe it happened the other way around, but the result is the same).
So the proper solution is indeed to edit your pages/forms and add a tag with the id attribute “cpreview” where you find it appropiate. We’ll be adding an FAQ item soon.
Last edited by Sencer (2006-11-13 09:00:30)
Offline
Re: comment preview display confusion
I took a look at Els suggestion again and decided to use a div with an id=cpreview enclosing the preview tag in it and kinda solve my problem…
Thanks again for replying fellas!
Offline
Pages: 1