As stated in the booklink tutorial you can print relations (what post a comment belongs to for example) by writing this:
<label>_{Post}:</label> <span class="static">{comment.post.name?}</span><br />
In the show.tpl. But how do you do the same in the listing.tpl? I've tried a lot of ways but havn't succeded. Thanks in advance!
no difference
{loop comments}
[...]
{comment.post.name}
[...]
{end}
in the controller though you have to include the posts while finding!
$options = array_merge(__other_options, array('include'=>'post'));
$this->comments =& $this->Comment->find('all', $options);
Thanks a lot!
1 to 3 of 3