Show Weblog Entries Associated With Member
Posted: 19 March 2008 10:37 AM   [ Ignore ]
Newbie
Rank
Total Posts:  9
Joined  2006-08-17

Apologies if this is obvious—I may have completely missed this somewhere, but is it possible to show in a list of members, the weblog entries each has contributed? I would imagine this could be accomplished by nesting exp:weblog:entries within the user loop. Would something like that work?

Thanks!

 Signature 

Phil Hertzler
TDC Design | Richmond VA

Profile
 
 
Posted: 19 March 2008 10:41 AM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3717
Joined  2006-10-18

I want to make sure I understand correctly…

Are you after generating a list of members (like a memberlist), and displaying weblog entries from each member, within that same list of members?
Much like a Category or Date Archive? smile

 Signature 

Check out the new Solspace Blog!

Profile
 
 
Posted: 19 March 2008 11:07 AM   [ Ignore ]   [ # 2 ]
Newbie
Rank
Total Posts:  9
Joined  2006-08-17

Yes, it would be something like that. What we’re after is a list of contributing authors that includes what they have contributed. On past projects, we have created a “Contributors” weblog and used relationships to associate entries to Contributors with content entries. In that case, the author (in EE) is not necessarily the same as the Contributor. For a variety of reasons, on the site we’re working on now, we’d prefer that contributors actually be site members, but we still need to be able to get a list of entries associated with members.

 Signature 

Phil Hertzler
TDC Design | Richmond VA

Profile
 
 
Posted: 19 March 2008 12:49 PM   [ Ignore ]   [ # 3 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3717
Joined  2006-10-18

Phil,

This code seems to work:

{exp:user:users}

{screen_name}
<br />
ENTRIES:<br />
{exp:weblog:entries author_id="{member_id}"}{count}{title} {author}<br />{/exp:weblog:entries}
<br /><br />

{/exp:user:users} 

 Signature 

Check out the new Solspace Blog!

Profile
 
 
Posted: 23 June 2008 06:25 PM   [ Ignore ]   [ # 4 ]
Member
RankRankRank
Total Posts:  75
Joined  2006-01-09

Hi,

Found this after looking everywhere but the moon!
I tried this, and it works:

{exp:user:users}
{screen_name}
<br />
{exp:weblog:entries limit="4" author_id="{member_id}"}
{if count}
{count}
{title}<br />
{/if}
{
/exp:weblog:entries}
<br /><br />
{/exp:user:users} 

Only one ques: How can I have screename not show if member has no posts?

Update later on: Dang!

{if total_combined_posts 0}
{screen_name}
<br />
{/if} 

This module is incredible!


thanks!

Profile
 
 
Posted: 24 June 2008 08:03 AM   [ Ignore ]   [ # 5 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3717
Joined  2006-10-18

Nice workaround! wink

 Signature 

Check out the new Solspace Blog!

Profile