Topic on Project:Support desk

Ask for more(custom) details when uploading a file in mediawiki.

8
208.116.10.33 (talkcontribs)

Is there any way that I can ask users for more details about the file they upload into the wiki and show it in a page where the file is used?

Version:
Mediawiki: 1.23.2
PHP  : 5.3.27 (cgi-fcgi)
MySQL  : 5.1.73-cll

208.116.10.33 (talkcontribs)

No reply. Not even 1 extension for that? Could someone please help?

MarkAHershberger (talkcontribs)

It sounds like a very particular use case. I don't know of an extension that does this.

From what I understand, you want to give a piece of data (e.g. "Description") to an uploaded file and then have that data used whenever the file is used. So, if a user uploads a picture of a pig, they can designate "Wilbert" as the description that will always be shown with the image's thumbnail.

Is that right?

I think something like this could be accomplished using templates, though, or even a bit of JavaScript. It would take a little time to implement, though.

208.116.10.33 (talkcontribs)

Can we add templates for the file upload page? What about the columns in the file upload table? If I add custom details like author name, archived date etc., the upload should add those details to the table too right?

MarkAHershberger (talkcontribs)

Hackin the DB is the wrong way to introduce those fields. Instead, you should probably use Semantic MediaWiki.

208.116.10.33 (talkcontribs)
MarkAHershberger (talkcontribs)

I didn't know about that. Try it out and see if it works for you.

208.116.10.33 (talkcontribs)

How do I implement that? Its not easy for me? All I know is to install extension and thats it.. Could someone please help..?

Reply to "Ask for more(custom) details when uploading a file in mediawiki."