Hi guys,
I registered here just to share my solution. I hope the creator can create a new parameter for this in the next version, it seems like a very essential option to me. To be clear, you can see the changes in action right here -
http://jonus.me/software/
Note that the description is taken from "Meta Description" and not the actual "Description" field (i.e. from the WYSIWYG editor) - this would be best practice, as the Description is probably very long and could include images - the Meta Description is ideally a one-sentence description in a nutshell. Anyway, here is the code changes:
1)
File at /components/com_phocadownload/models/section.php
Replace this line (at 67 in my version)...
Code: Select all
$query = " SELECT cc.id, cc.title, cc.alias, cc.access, cc.accessuserid, COUNT(c.id) AS numdoc"
...with this data...
Code: Select all
$query = " SELECT cc.id, cc.title, cc.alias, cc.metadesc, cc.access, cc.accessuserid, COUNT(c.id) AS numdoc"
2)
File at /components/com_phocadownload/views/section/tmpl/default.php
Replace these lines (starting at 44 in my version)...
Code: Select all
echo '<a href="'. JRoute::_(PhocaDownloadHelperRoute::getCategoryRoute($valueCat->id, $valueCat->alias, $this->section[0]->id)).'">'. $valueCat->title.'</a>';
echo ' <small>('.$valueCat->numdoc.')</small></p>' . "\n";
...with this data...
Code: Select all
echo '<a style="font-size: 1.4em;"href="'. JRoute::_(PhocaDownloadHelperRoute::getCategoryRoute($valueCat->id, $valueCat->alias, $this->section[0]->id)).'">'. $valueCat->title.'</a>';
echo ' <small>('.$valueCat->numdoc.')</small>' . "</p>";
echo '<p>'.$valueCat->metadesc.'</p>' . "<br/><br/>";
...note that I made the font-size of the title link a little bigger, just my preference; and also added a couple of new-lines after the metadesc. Customize to your own needs if you desire.
Please add this option in a future version

I already have enough custom code-hacks to worry about whenever I update my extensions! Thanks for the great Phoca Download
