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.

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).

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..

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..
      
Dmitriy

Attachment: SMW_DT_Image.php
Description: Binary data

-------------------------------------------------------------------------
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

Reply via email to