Uploadable parameter not working

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Uploadable parameter not working

Bobby S
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>

------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/semediawiki-user
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Uploadable parameter not working

Bobby S
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!

On Mon, May 29, 2017 at 12:56 PM, Bobby S <[hidden email]> wrote:

> 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>

------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/semediawiki-user
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Uploadable parameter not working

Stephan Gambke-3
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: [hidden email]
To: [hidden email]

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!

On Mon, May 29, 2017 at 12:56 PM, Bobby S <[hidden email]> wrote:

> 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>

------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/semediawiki-user
------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/semediawiki-user
Loading...