with a few php-knowledge i tried to get an entry_id as parameter in the following way, but there is a problem with the {url}, maybe it`s a trivial thing i don`t see, so i post it here.
... the links_mentioned-tag in my template:
{exp:links_mentioned weblog=“plattform” eentry_id=”{entry_id}” fields=“links” extractn=“600” limit=“10”}
<li><a href=”{url}”>{label}</a></li>
{/exp:links_mentioned}
...in pi.links_mentioned.php (####):
class Links_Mentioned
{
var $weblog = ‘’;
var $fields = ‘’;
var $eentry_id = ‘’; ####
var $search_limit = 10;
var $limit = 10;
var $exclude = array();
var $link_params = array();
var $return_data = ‘’;
function links_mentioned()
{
global $TMPL, $DB, $FNS, $LOC;
/*———————————————————-
Fetch Template Parameters
————————————————————-*/
$this->weblog = ( ! $TMPL->fetch_param(‘weblog’)) ? $this->weblog : $TMPL->fetch_param(‘weblog’);
$this->fields = ( ! $TMPL->fetch_param(‘fields’)) ? $this->fields : $TMPL->fetch_param(‘fields’);
$this->eentry_id = ( ! $TMPL->fetch_param(‘eentry_id’)) ? $this->eentry_id : $TMPL->fetch_param(‘eentry_id’); ####
$this->limit = ( ! $TMPL->fetch_param(‘limit’)) ? $this->limit : (int) $TMPL->fetch_param(‘limit’);
$this->exclude = ( ! $TMPL->fetch_param(‘exclude’)) ? $this->exclude : explode(’|’, $TMPL->fetch_param(‘exclude’));
$this->search_limit = ( ! $TMPL->fetch_param(‘search_limit’)) ? $this->search_limit
: (int) $TMPL->fetch_param(‘search_limit’);
$eentry_id = $TMPL->fetch_param(‘eentry_id’); ####
...then
/*———————————————————-
Get the field data
————————————————————-*/
$sql = “SELECT “;
foreach ($fields as $val)
{
$sql .= ” exp_weblog_data.” . $val . “,”;
}
$sql = substr($sql, 0, -1);
$sql .= ” FROM exp_weblog_data
INNER JOIN exp_weblog_titles ON (exp_weblog_titles.entry_id = exp_weblog_data.entry_id)
WHERE exp_weblog_data.weblog_id = ’” . $weblog_id . “‘
AND exp_weblog_titles.status = ‘open’
AND exp_weblog_data.entry_id = ’” . $eentry_id . ”’ ####
ORDER BY exp_weblog_data.entry_id DESC
LIMIT 0, ” . $this->search_limit;
... so, what it did: limits the output to the entry but with the {url} from (i assume) the first found in another place.
<li><a href=“http://www.humanrights.at”>geawaltüberwinden.org</a></li>
<li><a href=“http://www.humanrights.at”>tolerantschools.org</a></li>
... where it should be this.
<li><a href=“http://www.gewaltueberwinden.org” >geawaltüberwinden.org</a></li>
<li><a href=“http://www.tolerantschools.org” >tolerantschools.org</a></li>
any suggestions?