From: Tom H. <to...@hu...> - 2013-01-11 13:17:36
|
Woke up from my nightmare and SWM is working as expected once the data refresh after the upgrade of SMW finished. The Gallery format is working just fine for me off of a Category of pages with an imageproperty on the page. I even have 'redirects' working as SMW examples here: http://semantic-mediawiki.org/wiki/Demo:Gallery/Redirects @Leo There must have been an issue with 1.7 because as you pointed out, #ask on a category with imageproperty works. As I said in a previous post, it was breaking HTML with the older version, so it must have been fixed. Did your patch work or is the problem bigger than just checking if ( $imgTitle->exists() ) The call to the image thumb is absolute in the HTML being generated, '/w/images/......location' and if the image exist in another repository the image location needs to be prefixed with the repository's domain before the absolute location. This goes for the href too. This is what was causing the Gallery format on a Category from working. Something was not being called correctly, malformed HTML and breaking with this: <div class="gallerytext"> <p><a href="/wiki/File:Map_of_North_Carolina_highlighting_Alamance_County.png" title="File:Map of North Carolina highlighting Alamance County.png">Map of North Carolina highlighting Alamance County.png</a> </p> @s9gf4ult I'm guessing all the images are off your wiki in another repository? Have you tried on images uploaded to your wiki? Tom |