Bradley Holt wrote:
> Is there a way to perform in an inline conversion (instead of, or in 
> conjunction with, the tool tip conversion)? I have a temperature field 
> in °C and I'd like to display it in both °C and °F. For example:
> 
> 24.4°C (79.88°F)

SMW 0.7 doesn't offer any way to control the appearance of attributes in 
text.  You see the original value or the alternate text after the '|. 
It seems the philosophy of SMW is to retain the original text the author 
wrote inline, and only modify the property's appearance in tooltips, the 
factbox, and inline queries.

However, by modifying the PHP code in smwfParserAfterTidyHook() or 
smwfParseAttributesAfterTidyCallback() you could change the steps that 
rewrite the HTML to add the tooltip, and do something else.

--
=S Page

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Semediawiki-user mailing list
Semediawiki-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-user

Reply via email to