Hello,

I am using SMW to manage a museum collection that is being put online
(about 100k objects, each with its own page).

http://www.spmetric.com/projects/haffenwiki/61-342
uname/passwd = guest/wiki

I would like to augment all search results to automatically include an
associated image, if one exists.

The results currently list the WikiText equivalent of (in php-wikitext
pseudocode):

[[`$page->getTitle()`]]

Instead, I'd like them to list:

[[File:`$page->getTitle()`.jpg|thumb|link=$page->getTitle()]][[`$page->getTitle()`]]

To do this, it looks like I need to modify some combination of:

SMW_PropertyPage.php:subjectOjectList()
SMW_DV_WikiPage.php:getLongHTMLText()

but I am at a loss of how to achieve this.  Advice would be kindly welcomed.

Ian

PS - More generally, I'd love to find a nice way to extend SMW to have a
built-in concept of all pages having an associated image, date, and
location so that *all* SMW searches/lists can return timelines, maps,
and gallery views of result pages.  Suggestions on this front would be
very welcome.

------------------------------------------------------------------------------
Oracle to DB2 Conversion Guide: Learn learn about native support for PL/SQL,
new data types, scalar functions, improved concurrency, built-in packages, 
OCI, SQL*Plus, data movement tools, best practices and more.
http://p.sf.net/sfu/oracle-sfdev2dev 
_______________________________________________
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel

Reply via email to