2009/6/21 Chris Croome <ch...@webarchitects.co.uk>: > > Hi > > On Sun 21-Jun-2009 at 11:27:14PM +0100, Dan Bolser wrote: >> >> 2009/6/21 Yaron Koren <yaro...@gmail.com>: >> > >> > 1) No - you'd need some script to convert bare category tags into >> > field values within template calls (which is the only type of data >> > that Semantic Forms can edit). > > Ah, OK, thanks. > >> > 2) No - another possibility, though, is to make the Image: (or >> > File:) namespace editable by a form, so people can afterwards add >> > categories to the uploaded file. > > Great, I'll have a play with that. > >> > 3) No. (I see a trend here. :) ) It might make sense to have a "hide >> > this category from Semantic Forms" indicator for categories; the >> > Semantic Drilldown extension somewhat has need for a similar >> > feature. > > OK, that feature would help me out, in the meantime I'll see if I can > bodge it somehow... > >> > 4) That seems like a fairly elegant way to do it. Another option is >> > probably to find the name of that language value, then turn it >> > blank, by editing that value's MediaWiki page. (I hope that made >> > sense.) > > It didn't make sense, but don't worry about it :-) > >> > 5) By "comers", did you mean "corners"? In any case, I can't think >> > of another way to do it. > > Sorry I can't spell 'commas'... > >> I guess you mean 'commas'. Indeed, the above code will generate a >> string of commas because the comma is the default delimiter for the >> output of the arraymap function. > > Right. > >> Just do it like this... "{{#arraymap:{{{Category}}}|,|x|[[Category:x]] >> | }} >> >> Which specifies a blank output delimiter. > > Ah, great that solves it, I had tried adding newlines and that dodn't > work, I don't know why I didn't try a space. > > It might be worth documenting how to use an arraymap for multiple > categories on the Semantic Forms page on mediawiki.org -- it took me > quite a few hours to work this out...
I was wondering if you would write a new 'tip' on the http://smw.referata.com page? As I said, I haven't been looking at SF for categorization, so it would be really useful for me if you created something like a quick start 'tip' :-) All the best, Dan. http://smw.referata.com/wiki/Special:BrowseData/Tips >> BTW, it is possible to use the MW API to list the categories a page is >> in, therefore it should be possible to build a 'category adder form' >> independently of SF. I haven't played with these features, so I'm not >> sure how easy it would be to integrate. Where is a good example of how >> to use SF to categorize pages? > > Ah, that sounds good, I'll do some more investigation... > > Thanks again for all the help. > > Chris > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Semantic Forms" group. To post to this group, send email to semantic-forms@googlegroups.com To unsubscribe from this group, send email to semantic-forms+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/semantic-forms?hl=en -~----------~----~----~----~------~----~------~--~---