This is not possible, currently..
However, if you're using MySQL, it shouldn't be too hard, to do something like this:
- Code: Select all
[[php]]
global $PIVOTX;
$sql = new sql('mysql',
$PIVOTX['config']->get('db_databasename'),
$PIVOTX['config']->get('db_hostname'),
$PIVOTX['config']->get('db_username'),
$PIVOTX['config']->get('db_password')
);
$sql->query("SELECT `entry_uid` FROM pivot_comments GROUP BY `entry_uid` ORDER BY `date` DESC LIMIT 20;");
// Get the results.
$rows = $sql->fetch_all_rows();
// make them manageable..
$rows = implode(', ', make_valuepairs($rows, '', 'entry_uid'));
// Assign them in smarty
$this->assign('latest_uids', $rows);
[[/php]]
[[ subweblog .. uid="$latest_uids" ]] ... [[/subweblog ]]
In the subweblog as mentioned here, you get the entries that were last commented on, in the right order.