Discussion:
Uploadable parameter not working
(too old to reply)
Bobby S
2017-05-29 16:56:35 UTC
Permalink
On this form:

http://wi.ki/w/index.php?title=Form:Beer&action=edit

I am trying to create an uploadable field for "Main image". I used
the instructions from this page:

https://www.mediawiki.org/wiki/Extension:Page_Forms/Input_types#Uploading_files

You can find an example of a page using this form here:

http://wi.ki/wiki/Kentucky_Brunch_Brand_Stout

And...Here is the code that I am using:

<noinclude>
This is the "Beer" form.
To create a page with this form, enter the page name below;
if a page with that name already exists, you will be sent to a form to
edit that page.


{{#forminput:form=Beer}}

</noinclude><includeonly>
<div id="wikiPreview" style="display: none; padding-bottom: 25px;
margin-bottom: 25px; border-bottom: 1px solid #AAAAAA;"></div>
{{{for template|Beer}}}
{| class="formtable"
! Main image:
| {{{field|Main image|uploadable|property=Has main image|values from
namespace=File}}}
|-
! Brewery:
| {{{field|Brewery}}}
|-
! Style:
| {{{field|Style|input type=combobox}}}
|-
! ABV:
| {{{field|ABV}}}
|}
{{{end template}}}

'''Free text:'''

{{{standard input|free text|rows=10}}}


{{{standard input|summary}}}

{{{standard input|minor edit}}} {{{standard input|watch}}}

{{{standard input|save}}} {{{standard input|preview}}} {{{standard
input|changes}}} {{{standard input|cancel}}}
</includeonly>
Bobby S
2017-05-29 18:07:05 UTC
Permalink
I figured out how to get the link; however, when you use the link it
pops up a white space that is blank. So I still have a problem - just
a different one!
Post by Bobby S
http://wi.ki/w/index.php?title=Form:Beer&action=edit
I am trying to create an uploadable field for "Main image". I used
https://www.mediawiki.org/wiki/Extension:Page_Forms/Input_types#Uploading_files
http://wi.ki/wiki/Kentucky_Brunch_Brand_Stout
<noinclude>
This is the "Beer" form.
To create a page with this form, enter the page name below;
if a page with that name already exists, you will be sent to a form to
edit that page.
{{#forminput:form=Beer}}
</noinclude><includeonly>
<div id="wikiPreview" style="display: none; padding-bottom: 25px;
margin-bottom: 25px; border-bottom: 1px solid #AAAAAA;"></div>
{{{for template|Beer}}}
{| class="formtable"
| {{{field|Main image|uploadable|property=Has main image|values from
namespace=File}}}
|-
| {{{field|Brewery}}}
|-
| {{{field|Style|input type=combobox}}}
|-
| {{{field|ABV}}}
|}
{{{end template}}}
'''Free text:'''
{{{standard input|free text|rows=10}}}
{{{standard input|summary}}}
{{{standard input|minor edit}}} {{{standard input|watch}}}
{{{standard input|save}}} {{{standard input|preview}}} {{{standard
input|changes}}} {{{standard input|cancel}}}
</includeonly>
Stephan Gambke
2017-05-29 18:22:30 UTC
Permalink
Sounds like a PHP error.
See https://www.mediawiki.org/wiki/Manual:How_to_debug#PHP_errors

-------- Original Message --------
Subject: Re: [Semediawiki-user] Uploadable parameter not working
Local Time: May 29, 2017 8:07 PM
UTC Time: May 29, 2017 6:07 PM
From: ***@gmail.com
To: semediawiki-***@lists.sourceforge.net

I figured out how to get the link; however, when you use the link it
pops up a white space that is blank. So I still have a problem - just
a different one!
Post by Bobby S
http://wi.ki/w/index.php?title=Form:Beer&action=edit
I am trying to create an uploadable field for "Main image". I used
https://www.mediawiki.org/wiki/Extension:Page_Forms/Input_types#Uploading_files
http://wi.ki/wiki/Kentucky_Brunch_Brand_Stout
<noinclude>
This is the "Beer" form.
To create a page with this form, enter the page name below;
if a page with that name already exists, you will be sent to a form to
edit that page.
{{#forminput:form=Beer}}
</noinclude><includeonly>
<div id="wikiPreview" style="display: none; padding-bottom: 25px;
margin-bottom: 25px; border-bottom: 1px solid #AAAAAA;"></div>
{{{for template|Beer}}}
{| class="formtable"
| {{{field|Main image|uploadable|property=Has main image|values from
namespace=File}}}
|-
| {{{field|Brewery}}}
|-
| {{{field|Style|input type=combobox}}}
|-
| {{{field|ABV}}}
|}
{{{end template}}}
'''Free text:'''
{{{standard input|free text|rows=10}}}
{{{standard input|summary}}}
{{{standard input|minor edit}}} {{{standard input|watch}}}
{{{standard input|save}}} {{{standard input|preview}}} {{{standard
input|changes}}} {{{standard input|cancel}}}
</includeonly>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Semediawiki-user mailing list
Semediawiki-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-user

Loading...