Extension talk:Semantic Gallery

From mediawiki.org


I installed SemanticMediaWiki just to use this extension but I can't seem to get it to output anything. Using the code '{{#ask: Category:Image | format=gallery}}' doesn't do anything (there are images tagged in the Image category). If I just want to use this extension to display gallery's of Category images do I need to do anything with SMW or does it know what the Category tag is? Also, can this extension display the results from multiple categories in a single gallery? Can the query be configured so that it only shows images that, for example, are in both Category:1 and Category:2 but not the all images in either category?

Sorry for the barrage of questions. -- 15:16, 15 January 2009 (UTC)wt-2008[reply]

To display a gallery of images from a single category:

 {{#ask: [[Category:Image]] | format=gallery}}

To display a gallery of images that are in either one of two given categories:

 {{#ask: [[Category:Cat1||Cat2]] | format=gallery}}

To display a gallery of images that are in both given categories:

 {{#ask: [[Category:Cat1]] [[Category:Cat2]] | format=gallery}}

I would have replied sooner if I knew of a good way to monitor a particular page for changes through my feedreader (or with email notifications). Good luck! --BigSmoke 19:21, 22 January 2009 (UTC)[reply]

BigSmoke - you should click on "watch" for this page, then click on "my preferences" at the top and, in the main tab, select "E-mail me when a page on my watchlist is changed". Yaron Koren 22:30, 22 January 2009 (UTC)[reply]
Yaron, Thanks! You're very helpful. :-D --BigSmoke 08:52, 23 January 2009 (UTC)[reply]

I would like to ask how to display author in the gallery generated. Thanks - Elfgoh 07:22, 23 February 2010 (UTC)[reply]

Hi Elfgoh, To this end you'd have to create a property on the image page with the author name in it. Good luck! --BigSmoke 19:05, 13 March 2010 (UTC)[reply]

Help with install[edit]

Thanks for emailing me the scripts. It seemed simple enough, however, when I presumed to add:

require_once( 'extensions/SemanticGallery/SemanticGallery.php' );

to the end of my LocalSettings.php file, it resulted in an error, namely:

Fatal error: Access to undeclared static property: SMWQueryProcessor::$formats in /wiki/extensions/SemanticGallery/SemanticGallery.php on line 23

What did I do wrong? - Thanks!

- revansx

Is the Semantic MediaWiki extension already working? It should be loaded before the SemanticGallery extension. --BigSmoke 15:28, 4 December 2008 (UTC)[reply]

yes it is (as is evidenced by the correctly working semantic calendar) and Semantic Gallery is definately being loaded last.

any other thoughts?

- revansx

Could you let me know if the version that I put up in SVN fixes this? I see that you're not using the extension in your wiki yet, so I'm curious to know about any problems left. --BigSmoke 19:25, 22 January 2009 (UTC)[reply]

Displaying caption?[edit]

hello thanks for this extension. I dont understand on how to display other caption (custom) other than the namespace.


Never mind got it. I create a property and it display.

Hi there, I still have the same question! How do you get the file descriptions to show up as captions?



I'm using MW 1.15 and SMW 1.5 and when saving a Page with ask parser and Format gallery I'm getting this error

Fatal error: Call to a member function addImage() on a non-object in /.../extensions/SemanticGallery/SG_ResultPrinter.php on line 59

--DaSch 01:03, 15 March 2009 (UTC)[reply]

I totally overlooked this question for the past year. Is this still a bug? I certainly hope not because I'm quite clueless about what could be causing it. --BigSmoke 19:11, 13 March 2010 (UTC)[reply]

Gallery not working[edit]

I'm using Semantic Gallery version 0.3.1 from svn with Mediwiki 1.15.1 and SMW 1.4.3. I have the following query to return the images linked to a company:

{{#ask: [[Category:Images]]
| format=gallery}}

However, all that is displayed is the title of the images, the images do not show. I have all the image and thumbnail stuff switched on and images show if [[file:<filename.jpg>]] is used. Any ideas? Thanks --mitchelln 09:12, 22 February 2010

Hi Neil, I've just upgraded to MediaWiki 1.15.2 and Semantic MediaWiki 1.4.3 myself, but I haven't yet been able to reproduce your problem. Does the normal display of images thumbnails work correctly on your wiki? Is your wiki publicly accessible? --BigSmoke 22:05, 11 March 2010 (UTC)[reply]

Works, but can it be combined with SlimboxThumbs or Lightbox thumbs?[edit]

I've got the gallery working, great, really useful! Now I want to be able to click the thumbnails and get the image in a new window (the same each time) or at another location in the same website. The reason is I want to allow the users to compare the images easily by clicking them one after another, and them coming up in a constant place, directly after each other. The only solution I have found are lightbox and slimbox (see http://www.mediawiki.org/wiki/Extension:SlimboxThumbs). This at least allows me to view them in a popup and browse them directly, allowing for comparison. But can the gallery extension be used with Slimbox and/or lightbox?

Or does someone know of an alternative way to have the images popup/show elsewhere within the same screen? Hope it is clear, thanks a lot in advance!--FrankLeone 08:55, 9 March 2010 (UTC)[reply]

Hi Frank, I think there should be no problem using the SlimboxThumbs or any other such extension together with the Semantic Gallery extension. It should also be simple to do something like that yourself with a little Lightbox or JQuery magic. Good luck and let me know if you get stuck somewhere along the way. --BigSmoke 18:58, 13 March 2010 (UTC)[reply]

Size arguments not working?[edit]

The size arguments don't do anything the way I use them. What am I doing wrong?


or heights, or both.

Hi, I just tested them another time on my own wiki where these arguments do work. Is your wiki publicly accesible? Then I can take a look to find out what goes wrong. Otherwise, can you tell me some version numbers for your (S)MW installation? --BigSmoke 18:52, 13 March 2010 (UTC)[reply]