Using Tiki 7.2, we encounter the following issue with module semantic_links:
We've defined the abbrev. »wp« for links to Wikipedia articles, such that ((wp:Jon_Doe|Jon Doe)) expands to a link to http://en.wikipedia.org/wiki/Jon_Doe .
We've also defined a semantic link type »wp« to mark links to Wikipedia articles, and want to use the notation
This works well for the actual wiki page, and the abbreviation is properly expanded into a link to the WP article.
However, in the module semantic_links, the link text is displayed as
and the URL of the link is
Can this be fixed such that the module uses the same link text as the
respective wiki page?
(The Wikipedia link type is only an example, but note that it's reasonable for a wiki page to have several links to Wikipedia articles using the wp: abbrev., but still only one of those of type wp(, thereby indicating that the external Wikipedia article and the local wiki page are about the same subject.)
On the Tiki-devel mailing list (Oct 2nd 2011), Nelson Ko mentioned that
»I think there is a ›hackish‹ way to get this to happen.
In templates/modules/mod-semantic_links.tpl, you will see where the
link is generated:
<a href="{$msl_url|escape}">{$msl_item|escape}</a>
Replace this with:
{wiki}(({$msl_url})){/wiki}
I didn't test it but it should work if you have sefurl on, since with
sefurl on the value of msl_url should be simply wp:Jon_Doe«,
but the hackish way didn't hack. =;-)
To help developers solve the bug, we kindly request that you demonstrate your bug on a show2.tiki.org instance. To start, simply select a version and click on "Create show2.tiki.org instance". Once the instance is ready (in a minute or two), as indicated in the status window below, you can then access that instance, login (the initial admin username/password is "admin") and configure the Tiki to demonstrate your bug. Priority will be given to bugs that have been demonstrated on show2.tiki.org.
filename | created | hits | comment | version | filetype | ||
---|---|---|---|---|---|---|---|
No attachments for this item |