Akelos Framework v1 forum archive. This forum is no longer maintained. To report bugs please visit https://github.com/akelos/akelos/issues
    • CommentAuthorprtscr
     

    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!

    • CommentAuthorKaste
     

    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);
    
    • CommentAuthorprtscr
     

    Thanks a lot!