Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Comments invite before article doesn't work
I swear there’s a plugin to make txp parse something differently, but I can’t find it nor figure out how to do it. On my site, I have the popup comments invite appearing before the article. If you check the source, you’ll see <li id="info"></li>
. That’s where the comments_invite is supposed to be (image replacement). I guess it doesn’t work for the same reason <title><txp:title /></title>
doesn’t work (I know you use page_title).
(end of the header
form)
<code>
<txp:if_section name=”,gallery,articles”>
<ul id=“sub-nav”>
<li id=“prev”><txp:link_to_prev>Previous</txp:link_to_prev></li>
<li id=“all”><a href=”/gallery/” title=“view a thumbnail index”>All photos</a></li>
<li id=“info”><txp:comments_invite showalways=“1” /></li>
<li id=“next”><txp:link_to_next>Next</txp:link_to_next></li>
</ul></txp:if_section>
<div id=“content”>
</code>
The image form that follows the header:
<code>
<div id=“image”>
<txp:article_image />
<h2><txp:title /></h2>
</div>
</code>
I ran into this problem before and opted to keep my invite below the image, as that worked. If possible, I’d like to have the invite appear above the article image.
Offline
#2 2006-03-29 16:45:58
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Comments invite before article doesn't work
deldindesign wrote:
I guess it doesn’t work for the same reason
<title><txp:title /></title>
doesn’t work
That’s right. <txp:comments_invite />
, as does <txp:title />
, only works in an article form. Otherwise TXP wouldn’t know which article’s title to display, or which article to comment on.
Offline
#3 2006-03-29 19:50:47
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Comments invite before article doesn't work
Yep. Just turn off comment auto-append, then use the article tag in multiple places. It works, I do it all the time. :)
Offline
Re: Comments invite before article doesn't work
Thanks! It took me awhile to get it (a little slow lately), but here’s what I used:
form: c_i
<code>
<txp:comments_invite showalways=“1” showcount=“0” />
</code>
And called it with this:
<code>
<li id=“info”><txp:article form=“c_i” limit=“1” /></li>
</code>
Thanks again!
Last edited by deldindesign (2006-04-10 04:50:54)
Offline
#5 2006-04-11 21:01:31
- sarahemma
- New Member
- Registered: 2006-04-11
- Posts: 2
Re: Comments invite before article doesn't work
Hi there,
I have had a quick look through the FAQs and How To… however I still have a problem with Comments – and am looking for a wee bit of guidance!
I am able to have the link in blue hypertext ‘Comment’ at the end of an article – when I click on this/or a user clicks on this they then get the comment form: name, email, http://, message etc – which they can preview and then submit to me.
However – on some articles – I just have the Comment form – no link or word ‘Comment’, just the visible form – I cannot seem to get these pages to show just the link/or word ‘Comment’ – despite trying to change things in Admin > Preferences > Comments.
What could be wrong if some articles work fine, show the link – and others don’t?
Hope you can help!
Many thanks,
sarahemma
Offline
#6 2006-04-11 21:54:06
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Comments invite before article doesn't work
Please don’t double-post.
Anyone wishing to help out sarahemma can do so here.
Offline