Re: [SMW-devel] images as property values in PageSchemas

2013-05-08 Thread Yury Katkov
The current implementation seems weird for me too. It's very clear that 'uploadable' is a distinct form input and not the parameter of some other form input. What was the rational behind that? - Yury Katkov, WikiVote On Wed, May 8, 2013 at 6:14 PM, Jamie Thingelstad wrote: > Just to throw o

Re: [SMW-devel] images as property values in PageSchemas

2013-05-08 Thread Jamie Thingelstad
Just to throw out an alternative suggestion since we are on the topic. What about handling uploadable fields as there own input type? We currently have: {{{field|Image|uploadable|image preview|default=Default website image.png}}} what if it was something like: {{{field|Image|input type=upload|p

Re: [SMW-devel] images as property values in PageSchemas

2013-05-08 Thread Yaron Koren
I suppose that's true... although in practice I've never seen values get prepended with anything other than a namespace. You could have a field containing all subpage names, of course, but I've never seen that done, and on a "semantic" level it doesn't really make sense to do that. On the other han

Re: [SMW-devel] images as property values in PageSchemas

2013-05-08 Thread Yury Katkov
> And also given that, a single checkbox that says "Uploadable?" probably wouldn't be enough - the better option would probably be to have a new form input for each template field (in the "Edit schema" form) that said something like "This field always links to pages in this namespace (leave blank i

Re: [SMW-devel] images as property values in PageSchemas

2013-05-08 Thread Yaron Koren
Hi Yury, Yes, that's what I was proposing before, but I'm no longer proposing it. :) -Yaron On Wed, May 8, 2013 at 9:22 AM, Yury Katkov wrote: > Yaron, I reread your idea but I'm not sure that I got it right > Do you propose to automatically add "File:" text in the beginning of > uploaded fil

Re: [SMW-devel] images as property values in PageSchemas

2013-05-08 Thread Yury Katkov
Yaron, I reread your idea but I'm not sure that I got it right Do you propose to automatically add "File:" text in the beginning of uploaded filename like here? http://i.imgur.com/MU31Tw9.png - Yury Katkov, WikiVote On Wed, May 8, 2013 at 4:59 PM, Jamie Thingelstad wrote: > Hello Yaron,

Re: [SMW-devel] images as property values in PageSchemas

2013-05-08 Thread Yaron Koren
Hi Jamie, You're right that there are other cases where the namespace needs to be prepended - I had forgotten about that. Given that, maybe it's better to just deal with Page Schemas and template creation, instead of revisiting that entire design decision. And also given that, a single checkbox t

Re: [SMW-devel] images as property values in PageSchemas

2013-05-08 Thread Jamie Thingelstad
Hello Yaron, I agree that having to add the namespace in the template is confusing, but my initial reaction to adding "File:" if it is set to uploadable is no. Perhaps I'm being overly pedantic, but I think of a property for a page that is targeting a different namespace, most commonly I see t

Re: [SMW-devel] images as property values in PageSchemas

2013-05-07 Thread Yaron Koren
Hi, What about my suggestion? I'm also curious if anyone else has an opinion on having "uploadable" fields add the "File:" to file names. This would be a somewhat big change, so people may have opinions on it one way or another. On Tue, May 7, 2013 at 4:41 PM, Yury Katkov wrote: > For now I c

Re: [SMW-devel] images as property values in PageSchemas

2013-05-07 Thread Yury Katkov
For now I can just add some lines of code to the form generator: if uploadable option is here it will generate [[property::File:filename]] instead of just [[property::filename]]. I've proposed checkbox solution because of the folowing. In my opinion Page Schemas can be great visual tool to edit fo

Re: [SMW-devel] images as property values in PageSchemas

2013-05-07 Thread Yaron Koren
Hi Yury, Hm, that's true... I hadn't thought of that. Some checkbox could be added to the Page Schemas form, but maybe the better solution is just to have uploadable fields in SF start adding a "File:" to the beginning of file names they've uploaded. It's something that various people have asked a

[SMW-devel] images as property values in PageSchemas

2013-05-07 Thread Yury Katkov
Hi Yaron, all! It's possible now to create uploadable fields in forms via PageSchemas: we just create a Page property and specifily the field as uploadable in additional paramerest. There is however an issue. When I generate the templates I need the File namespace to be added in front of the filen