This code as far a I can remember is added on scaffolded listings when the scaffold is generated and the model columns can't be fetched.
That allows looking though existing columns
<td class="field"><?php echo $course->get($content_column) ?></td>
and showing their values.
That is OK for showing a variable set of columns, but most times we can hand code the columns we really need, in that case
<label>_{Author}:</label> <span class="static">{book.author.name?}</span><br />
will suffice you
There were several changes called for in order to include the authors in the books show. AFAIK, I've made them all. As you indicated, I changed show.tpl to look like the following:
<div class="show">
<?php $content_columns = array_keys($Book->getContentColumns()); ?>
<label>_{Author}:</label> <span class="static">{book.author.name?}</span><br />
{loop content_columns}
<label><?php echo $text_helper->translate($text_helper->humanize($content_column))?>:</label> <span class="static"><?php echo $book->get($content_column) ?></span><br />
{end}
</div>
I tried moving the <label>_{Author... line after the {loop content_columns}, but that didn't cause http://alan.lakeinfoworks.com/booklink/?ak=book to show the list of books with the author either. Am I looking at the wrong page?
The booklink tutorial does now tech you how to show the author on the listing.
I was not aware about it and Shtriter sent an appendix explaining how to achieve it.
That ticket will be fixed soon by the core team
1 to 4 of 4