Loading...
 
Features / Usability

Features / Usability


Using and handling images and their metadata

posts: 3665 United States
FootlooseTraveller wrote:
1. How can I allow multiple mime-types in the file-field? When separating them with commata, the file browser showed all the right files, but upload failed (Tiki 21 LTS).


To limit the uploads to images, only, I think you want something like: image/* as your MIME filter. There may be additional hints in the docs. The examples show using a pipe — not a comma.

You may also be able to limit the MIME type by configuring it for the file gallery you're using with the tracker.


FootlooseTraveller wrote:
2. When editing a wiki page, the input box shows some tools. One of them is "choose or upload images". How can I disable normal file upload and show my add tracker form instead, with the upload properly functioning from there, and from there only - accessible for anonymous users?


This may be more complex.... If you're trying to duplicate the Tiki process that allows you to upload an image and then select/use it immediately, you'll need something like this:

  • First, you'll want to edit the toolbar to remove the current upload button (or move to the Admin section).
  • Then, you'll want to make custom QuickTag that calls the page your tracker form uses (I assume you're using a pretty tracker page and not the default tracker form — it will make things much easier). You'll probably want to open the tracker form with no header/footer/modules, too, in a separate window or modal.
  • Finally, you'll need to write some JS for the tracker body/action that upon form submission, will close the popup window (e.g., window.close) and then add the {img...} to the wiki editing form. I'm sure that someone else may have a better solution for you.


This means, of course, that you only allow users to upload images while their editing pages. I'm not sure what your expected flow or usecase is for your site.

An alternative is to just let users upload their image separately from the editing process. Then you simply limit their ability to choose/browse images to whatever specific file gallery you're using for your tracker upload.

HTH,

- Rick | My Tiki Blog | My Tiki UserPage

Why be a dummy? Get smarty! TikiForSmarties.com
Tiki for Smarties, your source for the best (and only) Tiki books, guides, and tutorials.
There are no comments at this time.

Upcoming Events

1)  18 Apr 2024 14:00 GMT-0000
Tiki Roundtable Meeting
2)  16 May 2024 14:00 GMT-0000
Tiki Roundtable Meeting
3)  20 Jun 2024 14:00 GMT-0000
Tiki Roundtable Meeting
4)  18 Jul 2024 14:00 GMT-0000
Tiki Roundtable Meeting
5)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
7) 
Tiki birthday
8)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting
9)  21 Nov 2024 14:00 GMT-0000
Tiki Roundtable Meeting
10)  19 Dec 2024 14:00 GMT-0000
Tiki Roundtable Meeting