2009/6/21 Yaron Koren <yaro...@gmail.com>: > Hi, to answer your questions: > > 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). > > 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. > > 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. > > 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.) > > 5) By "comers", did you mean "corners"? In any case, I can't think of > another way to do it. > > -Yaron > > On Fri, Jun 19, 2009 at 5:06 PM, Chris Croome <ch...@webarchitects.co.uk> > wrote: >> >> Hi >> >> I have used the Semantic Forms extension to allow people to pick >> multiple categories for pages using a form interface. >> >> There are a few problems I have and I wonder if anyone has an answer for >> any of these. >> >> - Editing pages that haven't previously been edited with the 'edit with >> form' interface -- is there any way to populate the CategoryTree with >> the Categories that the page is already in? >> >> - Is it possible to add the CategoryTree for selecting categories to the >> Special:Upload page? >> >> - Is it possible to omit some tickboxes from the CategoryTreei? In order >> to have a tree structure for the categories I had to create some >> meta-categories, is it possible to hide / remove the tickboxes for >> these as they are only for structuring categories and not for pages to >> be placed in. I did look at hiding the tick boxes for these specific >> categories using CSS but they don't have a unique id. >> >> - I have hidden the "no sub-categories" text from the CategoryTree with >> a CSS hack, is there a more elegant way to do this? >> >> i.CategoryTreeNotice { >> display: none; >> } >> >> - The code I have used for the Template:Categories generates unneeded >> comers, which I have hidden by using this code: >> >> <span style="display: >> none;">{{#arraymap:{{{Category}}}|,|x|[[Category:x]]}}</span> >> >> Is there a more elegant to remove all the unneeded comers?
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. Just do it like this... "{{#arraymap:{{{Category}}}|,|x|[[Category:x]] | }} Which specifies a blank output delimiter. 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? Cheers, Dan. >> Thanks >> >> 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 -~----------~----~----~----~------~----~------~--~---