On Monday 09 April 2007 16:42, cnit wrote: > Greetings! > A bit improved version of my image type class. I've reposting it, > because the first one had few nasty bugs. With this one, you can > define Attributes [[has type::Type:Image]] and display the values of > such type as thumbnails, even in the <ask> query results.
Thanks. Our intention is to provide a better image support in SMW 0.8, basically by displaying thumbnails in query results that point to image pages. This will be coordinated with some other changes in the query formatting code (new storage abstraction layer). We will certainly have a look at your implementation too. > > Note that it's for SMW 0.6, the future SMW 0.7 will probably don't > need this (I hope it will have some kind of templating for attribute > definitions and ask queries). True, one can emulate image support with format="template" But this is still some manual work which will hopefully be obsolete in 0.8. > > BTW, is there any way to specify the attribute for searching, yet > don't display it's data row in the results output? Probably also will > be fixed with some kind of templates, anyway.. True again, templates can achieve this as well, although with some overhead in configuration and computation that one would like to avoid. Maybe we introduce this as an option for <ask> in SMW >0.7. > > Also, one serious problem with <ask> I've encountered: > When I try to make search link query, the template parameters aren't > expanded: eg > <ask format="ul" limit="0" searchlabel="BlahBlah" default="Blah"> > [[Category:{{{Cat}}}]] > </ask> > {{{Cat}}} encodes as a mere string into target URL without being > replaced with it's actual value :-( That's wrong, I believe.. Yes, sorry about that. It really seems to be a bug that is built into the current design of MW. I know that it is very annoying ... -- Markus > > Dmitriy -- Markus Krötzsch Institute AIFB, University of Karlsruhe, D-76128 Karlsruhe [EMAIL PROTECTED] phone +49 (0)721 608 7362 www.aifb.uni-karlsruhe.de/WBS/ fax +49 (0)721 693 717
pgpovGvDJM6Ll.pgp
Description: PGP signature
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________ Semediawiki-devel mailing list Semediawiki-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/semediawiki-devel