Jump to content
  • 0
Sign in to follow this  
cppsax

Allow user to Input a variable in an inputbox

Question

Hello,

I installed MediaWiki 1.29.1 with the Variables and ExternalData extensions.
I created pages in which a predefined variable in the body of the page calls external data from a csv file filtered on this variable and returning a table with all the results.

I would now like to leave the choice of this variable to the user.

It seems that the Inputbox does not allow to assign user's input to a variable.
I would not want this entry to create a new page nor a section but serve as a filter to my external data called in the table in the same page / section.
I would like to avoid having to install Semantic Mediawiki which seems to provide this possibility.

Can someone help me to this point on which I have been blocking for several days.

Thank you in advance.

Christophe, from Paris.

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

This is unfortunately not possible with just the Inputbox extension. You may be able to make use of the Page Forms extension for this purpose (it's part of Semantic MediaWiki but can be installed standalone if you don't want all of SMW installed). However, I've never actually tried it out myself so I cannot say for certain whether or not it will work. You can grab the extension at https://www.mediawiki.org/wiki/Extension:Page_Forms

  • Like 1

Share this post


Link to post
Share on other sites
  • 0

Thanks a lot for your answer. I will try your suggestion and revert with the result.

Kind regards,

Christophe

Share this post


Link to post
Share on other sites

Your content will need to be approved by a moderator

Guest
You are commenting as a guest. If you have an account, please sign in.
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoticons maximum are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.