How to show entries
Posted: 08 February 2010 04:29 AM   [ Ignore ]
Jr. Member
RankRank
Total Posts:  46
Joined  2009-10-26

Hi,

I’m trying to create Threaded comments, but with one level only, with free forms.
Form submission works, but in comments listing I can’t show them?

Form submission:

{exp:freeform:form form_name="comm_thr_{comment_id}"}
          
<p>Comment<br /><textarea name="comment"></textarea></p>
 
          <
input type="hidden" name="name" id="name" value="{screen_name}" />
          <
input type="hidden" name="parent_id" id="parent_id" value="{comment_id}" />
          
          <
p><input type="submit" name="submit" value="submit" /></p>
        
{/exp:freeform:form} 


Entry’s:

<ul>{exp:freeform:entries form_name="comm_thr_{comment_id}"}
        {if no_results}
<li>No Results</li>{/if}
        
<li><b>{name}</b> - {comment}</li>
        
{/exp:freeform:entries}
        
<ul

And this doesn’t show no_results also? Just <ul></ul> is rendered

Could You advice me?
I know i can pull this information with SQL module, but i think is better to pull them with native Free Form

Thanks in advance

Profile
 
 
Posted: 09 February 2010 05:36 PM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRankRank
Total Posts:  8264
Joined  2006-10-18

Try placing the Freeform code in an embedded template instead wink

 Signature 
Profile
 
 
Posted: 19 February 2010 03:49 AM   [ Ignore ]   [ # 2 ]
Jr. Member
RankRank
Total Posts:  46
Joined  2009-10-26

Great smile

One more question…

Since this is threaded comments is there any way to create notification template and pass comment author email, so notification will be sent to the comment author?
Just asking smile

Thanks

Profile
 
 
Posted: 19 February 2010 11:41 AM   [ Ignore ]   [ # 3 ]
Administrator
Avatar
RankRankRankRankRank
Total Posts:  8264
Joined  2006-10-18

You might be able to pull it off with the usual parameters, and then put {email} (or whatever EE Comments uses!) grin in the notify parameter:

notify="{email}" template="whatever" 
 Signature 
Profile