I have an existing site (http://www.irtpa.com) where there is a weblog with one entry for each real tennis player. They now want players to have their own blogs. No problem I thought, but I am currently stuck. This is what I have so far:
An existing weblog ‘players’ with one entry per player (I’ve added a blogger_username field to link to member)
A member is created for each player who wants to blog
A new weblog ‘blogs’ where the author/username is used to link back to the player.
Here is the problem.
I want a page to list all the blog entries for a player, so I have a template that is called .... index.php/tennis/player_blog/joe_soap
In the template, what I want to do is:
{exp:weblog:entries weblog="players" ...} <-- this gets existing info on the player inc. username
{player_pic} etc.
{exp:weblog:entries weblog="blogs" username="{blogger_username}" dynamic="off"}
{title} etc.
EE doesn’t seem to want to nest exp:weblog:entries.
I’ve tried this approach
{exp:weblog:entries weblog="players" ...}
<?php $blogger="{blogger_username}" ?>
{/exp:weblog:entries}
{exp:weblog:entries weblog="{weblog_name}" dynamic="off" username="<?php echo $blogger; ?>"}
...The value $blogger is correctly set after the first exp:weblog:entries if php is set to output, but doesn’t get passed as a parameter to the call of the second exp:weblog:entries.
Also tried this using assign_variable with no success.
I know EE was not design to do this and if they had specified blogs at the beginning I would have design differently…..
I can rewrite the weblog:entries as a module to do exactly what I want, just wondered if anyone had any other ideas and could point out a simpler or obvious solution I have missed.
Phoebe.