Not signed in (Sign In)
Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    • CommentAuthorFlancer
    • CommentTimeOct 20th 2007 edited
     

    I have re-read ticket 64 only to find out it is meant for 0.9 and not 0.8.

    Is there another way to do this or this can only be achieved in version 0.9 of Akelos?

    Thank you.

    • CommentAuthorrkirkw
    • CommentTimeNov 29th 2007 edited
     

    I got it to work. Seems like ticket 64 is suffering a bit from cut-and-paste from a different tutorial

    Follow the first two steps but when you edit app/views/book/listing.tpl do it like below

    {loop books}
        <tr {?book_odd_position}class="odd"{end}>                // <-- After this line
        <td>{book.author.name?}</td>                                // <-- Insert this line
    {loop content_columns}
    
    • CommentAuthorsuthern
    • CommentTimeDec 7th 2007 edited
     

    And if you want a Column header for that, you'll need to do something like this:

    <?php  $content_columns = array_keys($Book->getContentColumns()); ?>         // <-- After this line
    <th scope="col">Author</th>                                                  // <-- Insert this line
    
    • CommentAuthorccornwell
    • CommentTimeMay 6th 2008
     
    Can the sortable_link be applied to joined fields, or only to the associated class' contentColumns?

    Suppose I want the Author column to be sortable? If instead of

    <th scope="col">Author</th>

    I use

    <th scope="col"><?php echo $pagination_helper->sortable_link('what goes here?') ?></th>

    the Author column appears to sort ascending on book.author_id no matter what I put in place of "What goes here?". The single exception is when I substitute 'author_id'. In that case, the page displays 'Author' for the column title, and clicking the column header alternates between ascending and descending sort. But, as before, the sort is on the id, not the name.
    • CommentAuthortilluigi
    • CommentTimeJul 26th 2008
     
    i am asking myself the same question here. anybody can help!?
    • CommentAuthortilluigi
    • CommentTimeJul 28th 2008
     
    i learned that its not supported by Akelos to sort/order by foreign attribute
Add your comments
    Username Password
  • Format comments as