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 forms and templates very quicky.
Now the editing of the schema slows because I have to look up tag
parameters. More buttons, dropdowns and checkboxes could speed up the
editing process.
-----
Yury Katkov, WikiVote



On Wed, May 8, 2013 at 12:28 AM, Yaron Koren <ya...@wikiworks.com> wrote:

> 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
> about, but I never took that seriously - I liked the "cleanliness" of not
> including the namespace, and just having the file name. But maybe that
> cleanliness is more trouble than it's worth - I know that, even without
> this Page Schemas issue, the fact that a "File:" needs to be added to the
> template has caused a considerable amount of confusion.
>
> The main counter-argument might be that this approach is already in place
> on a lot of wikis, so making a change to the upload setup would require
> people to change a lot of existing pages; but then again,
> backward-compatibility can't be a reason to never make a change, and the
> Replace Text extension might be able to help with that sort of thing anyway.
>
> Any thoughts?
>
> -Yaron
>
>
> On Tue, May 7, 2013 at 4:02 PM, Yury Katkov <katkov.ju...@gmail.com>wrote:
>
>> 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 filename:
>>
>> [[someproperty::File:MyCoolPicture.jpg]]
>>
>> Instead I have the following:
>>
>> [[someproperty::MyCoolPicture.jpg]]
>>
>> and my image not appears on the page.
>>
>> Yaron, what's your advice on how to better handle that in a PageSchemas
>> if I want to add this feature? What about adding a checkbox "uploadable" to
>> the Field definition?
>> -----
>> Yury Katkov, WikiVote
>>
>>
>
>
> --
> WikiWorks · MediaWiki Consulting · http://wikiworks.com
>
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
_______________________________________________
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel

Reply via email to