When viewing a category or latest posts or any list of posts...
I would like to show a snippet of the first post message text below the topic title.
This same snippet is already shown in the tooltip - I just think it would look nice if it is shown below the topic title as part of the row for that topic.
I cannot find a config option to do this.
So i am setting about modding the template.
I know I have to edit
my_template/layouts/topic/row/default.php
I know where to make the edit - just after:
Code:
<div class="started">
<span class="ktopic-category"> <?php echo Text::sprintf('COM_KUNENA_CATEGORY_X', $this->getCategoryLink($this->topic->getCategory(), null, $this->topic->getCategory()->description, KunenaTemplate::getInstance()->tooltips())) ?></span>
<br/>
But i cannot figure out what variable to display to show the message.
I have tried;
Code:
$message->displayField('message');
But it doesnt work i guess cos at that point in code the item being referenced is the topic not the message.
Can anyone help?