Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-01-21 05:00:52

tc03
Member
Registered: 2007-11-06
Posts: 92

New Comments-related

What I am after is a front-page that has a list of articles, but also has a comments-like section where can be posted links by readers (if you have seen quipsologies then you know what I mean). I am confused as to whether I would use the static-article/sticky method described here – which I have used already for about and contact etc. or if there is some other way of doing it. What I imagine I must do is make an article with comments open on the same page as my recent article list, and use two different forms for them…if it helps, i have the following already for this part

<div id=“content”>
<txp:recent_articles break=“li” wraptag=“ul” label=“CURRENT ISSUE:” labeltag=“h4” limit=“7” section=“articles” sort=“Title asc” />
<br />
</div>

Offline

#2 2008-01-21 05:17:51

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: New Comments-related

We do something like this for the submit news section at CMP. It doesn’t really matter if your article is live or sticky, since you’ll be pulling it with article_custom. Do the following:

  1. Grab the latest taghandlers.php or run an svn copy
  2. Create a section, community
  3. Post an article to that section

Page template

<txp:article_custom form="community" section="community" />

Form: community

<txp:hide>
	Include your message, if desirable.
</txp:hide>
	<txp:body />
<txp:hide>
	If you're not doing anything special to the individual comments,
	then use the default comments form.
</txp:hide>
	<txp:comments break="" form="community_input" limit="10" wraptag="" />

See if that works for you.

Last edited by jm (2008-01-21 05:18:34)

Offline

#3 2008-01-21 05:24:31

tc03
Member
Registered: 2007-11-06
Posts: 92

Re: New Comments-related

jm wrote:

  1. Grab the latest taghandlers.php or run an svn copy
  2. Create a section, community
  3. Post an article to that section

Sorry – just one thing – what is taghandlers.php – how do i get how do i install/what do i change…?
But yes, looks like the solution, just need help to implement..

Offline

#4 2008-01-21 05:53:05

tc03
Member
Registered: 2007-11-06
Posts: 92

Re: New Comments-related

Also, doesn’t seem to work – no comments come up. I have the following:

PAGE

<div id=“content”>
<txp:recent_articles break=“li” wraptag=“ul” label=“CURRENT ISSUE:” labeltag=“h4” limit=“7” section=“articles” sort=“Title asc” />
<br />
<div id=“submit_links”>
<txp:article_custom form=“community” section=“community” />
</div>
</div>

FORM = community (article form?)

<txp:body />

<txp:comments break=”“ form=“comments_display” wraptag=”“ />

FORM = comments_display

<h3 id=”<txp:text item=“comment” />”><txp:comments_invite textonly=“1” showalways=“1” showcount=“0” /></h3>

<txp:comments />

<txp:if_comments_preview>
<div id=“cpreview”>
<txp:comments_preview />
</div>
</txp:if_comments_preview>

<txp:if_comments_allowed>
<txp:comments_form />
<txp:else />
<p><txp:text item=“comments_closed” /></p>
</txp:if_comments_allowed>

What have I done wrong?

Offline

#5 2008-01-21 05:54:45

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: New Comments-related

Replace textpattern/publish/taghandlers.php with this version. We need this because the comments tag lacks a limit attribute in 4.0.5, but it’s present in the development branch.

Edit: For your recent problem, are there comments posted to the article in the community section? Any errors (enable debugging mode in Admin)?

Last edited by jm (2008-01-21 05:59:39)

Offline

#6 2008-01-21 06:08:49

tc03
Member
Registered: 2007-11-06
Posts: 92

Re: New Comments-related

sorry jm – after xhtml/css not much idea – where is this textpattern/publish/taghandlers.php that I have to change?

Offline

#7 2008-01-21 06:11:05

tc03
Member
Registered: 2007-11-06
Posts: 92

Re: New Comments-related

got it

Offline

#8 2008-01-21 06:13:43

tc03
Member
Registered: 2007-11-06
Posts: 92

Re: New Comments-related

But still no success – the article is displayed but no comment/input info. Nothing.

Offline

#9 2008-01-21 06:20:49

tc03
Member
Registered: 2007-11-06
Posts: 92

Re: New Comments-related

I guess I want to display the input here as well – on your site there is a separate window that pops up – i just want it there on the page.

Offline

#10 2008-01-21 06:30:57

tc03
Member
Registered: 2007-11-06
Posts: 92

Re: New Comments-related

damn got it… ty for help and patience

Offline

#11 2008-01-21 07:19:30

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: New Comments-related

Glad you got it sorted out!

Offline

Board footer

Powered by FluxBB