While it certainly helps to have many options, in some cases it is better to have a limited choice in order not to confuse the users. In the case of my (future) site I want my users to be able to easily insert images in their texts but I also have to assume that these users will be of various backgrounds and too many options will only confuse most of them. Additionally the design of the web site may dictate that I don't want to see only a certain size images inserted into the posts. So here are my issues and I would appreciate if you can give me some ideas how to solve them:

1) Browse Images - by default I have 2 choices: "My Images" and "All Images". What if I want only "My Images" to be available to the user? Or what if I want more filters to be exposed here? Adding views integration in the latest version is a really great thing but I am not sure if I can use it in this case and how.

2) Size - In my case I want my users to be able to insert images with a single fixed size only so this option shouldn't even be there. Is there a way to set a default preset size and hide this option?

3) Link - Again, in my case I need static images inserted with no links added to them. How can I remove this option and set a default?

4) Insert Mode - Same thing. Many of my users will not even know what Filter Tag or HTML code is. So why even bother giving them that choice? Generally I would set this to filter tag, set up my filters accordingly and remove this option.

All these questions make sense of course when the site is open to the public. When a single person or a group of more knowledgeable editors only submit content, then having these options would be an advantage. So the general question is: with the current version can I somehow control which options are shown, and which are not?

Comments

sun’s picture

1) All Images is only available for users with certain user permissions.

2 + 3) Not yet. This would be a feature request.

4) Insert mode is only displayed if a user was granted the "access advanced options" and Image Assist's settings were configured accordingly.

kirilius’s picture

Thanks a lot for the quick answer!

My 1st question had two parts, you answered the first one - about removing the "all images" option. What about adding different filters like "Images from gallery/taxonomy XXX"? In general how do the filters/arguments added to the browser view interact with the image selector form? Is there any readme/documentation on this?

For 2 and 3 I believe I can just set a style display:none for the areas I don't want to be shown although that would mean messing up with the code. I will also log a feature request.

Thanks again!

sun’s picture

Status: Active » Fixed

You can assign multiple views in Image Assist's settings. The most trivial customization would be to clone the default view, add an exposed filter to enter/select terms from a vocabulary, and add this view in the settings.

kirilius’s picture

Hmmm... my goal is actually to
1) Allow users to create multiple own galleries and upload images in them
2) Allow users to select from a list of their own galleries from the drop-down box

If I had a fixed number of predefined galleries, the suggested approach would work, but since the galleries are user-defined, there is no way to create a view for each one. That's the reason I am asking about the filters.

sun’s picture

i) Clone the default view.
ii) Add a filter to limit images to images of the current user.
iii) Add an exposed filter to select an image gallery term.
iv) Optionally add arbitrary other exposed filters.
v) Add this view to the view selector of Image Assist.

kirilius’s picture

Thanks! That was very helpful.

kirilius’s picture

Ooops! I just enabled the gallery module and now when I click on the "add image" link, I get an error:
Error: The specified view was not found.

I haven't changed anything in the views setup.

When I select either "My images" or "All images", the pictures show just fine. Only the initial screen doesn't seem to know where to go??

sun’s picture

Status: Fixed » Postponed (maintainer needs more info)

What happens if you disable the gallery module again?

kirilius’s picture

When I disable the gallery, everything is back to normal - no errors.

sun’s picture

Title: Restrict the options in the image browser window? » Image Gallery module conflicts with views in popup window

Better title.

sun’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

Sorry, without further information this issue can only be marked as won't fix.

Feel free to re-open this issue if you want to provide further information. Thanks.