Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Totally lost (am I stupid or what?)
Hey guys,
I haven’t been following the TXP development for quite some time now (just updated to 4.06 from 4.03 I think, that would make 2+ years). Now this may sound stupid, but I’ve pretty much forgotten how my TXP forms are “connected” and now the whole setup just does not make any sense to me.
This is the situation. Single article page. Comments form. Someone fills the form, clicks the Preview button. The page reloads, showing the article again, all posted comments, preview of the just typed comment and the comments form again.
So far – so good. However, I cannot for the life of me figure out in which form is the markup that controls the comment preview (and the comments themselves for that matter). This is what I have in the comments
form:
<h3><txp:comment_permlink><txp:comment_name /></txp:comment_permlink>, <txp:comment_time /></h3>
<txp:message />
Also, I have a preview_comment
form, but it does not get used, as even if I change stuff in it (in the example below I’ve set h1 instead of h3), it does not show on the site. And what’s more, if I change the comments
form – it changes the comment preview as well.:
<h1><txp:comment_permlink><txp:comment_name /></txp:comment_permlink>, <txp:comment_time /></h1>
<txp:message />
What I want to achieve is add a custom CSS style to the content preview blog (heading+message) and add an anchor (#cpreview), so after the user clicks the Preview button and the page reloads, it goes straight to the comment preview. And maybe put the comment preview above all posted comments, but below the article.
HELP! :D
Thanks in advance!
Last edited by Boby Dimitrov (2008-02-15 13:35:15)
Offline
Re: Totally lost (am I stupid or what?)
It default uses comments_display
named article form to display the comments.
There you can add something like:
<txp:if_comments_preview>
<txp:comments_preview form="preview_comment" />
</txp:if_comments_preview>
And if you like it above comments but it above <txp:comments />
tag, if below to the below.
Last edited by Gocom (2008-02-15 14:02:38)
Offline
#3 2008-02-15 14:57:19
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Totally lost (am I stupid or what?)
Some FAQs that might help:
Offline
Re: Totally lost (am I stupid or what?)
Thanks Els, those FAQs helped! After a bit of tinkering I was able to achieve what I described in the OP (or close enough).
Offline