Skip Navigation

[Resolved] Not able to use existing media from Library within a View

This thread is resolved. Here is a description of the problem and solution.

Problem:

I don't seem to be able to add existing media from within my Media Library to a View.

Solution:

It is designed to "limit what appears on the Media dialog to elements attached to the current object being edited", there isn't plan to change it in view, but it will be changed in Views content template.

Relevant Documentation:

100% of people find this useful.

This support ticket is created 5 years, 10 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 6 replies, has 3 voices.

Last updated by Ben 5 years, 10 months ago.

Assisted by: Luo Yang.

Author
Posts
#1186938

Ben

I don't seem to be able to add existing media from within my Media Library to a View.

Instead I have to upload the file directly from within Views itself. This is leaving me with a large quantity of duplicated files in my Media Library, which is something I would like to avoid if possible.

Is this expected behaviour?

#1187301

That's correct, this is expected.
Views, Content Templates and WordPress Archives can only export images attached to themselves, hence we limit what appears on the Media dialogue to elements attached to the current object being edited.

Note, if you try this with Content Templates then you will see that you actually can see ALL Media.
That is a BUG, and it's not expected since you will not be able to export those in the CT export. This will be fixed in future.

To use Media in Views, CT or WPA you need to upload the media directly to it.
I also suggested to rename that button from "Media" to "Toolset Media" as it has nothing to do with what we expect on "media" from WordPress.

#1187701

Ben

Thank you for clarifying this Beda.

Is there any reason for this configuration? Is it something to do with permissions or security?

I think your idea reference the rename would be useful and help to stop some of the confusion as to why all media does not appear there in the first place.

#1187922

I have checked it in our to-do list, it is designed to "limit what appears on the Media dialog to elements attached to the current object being edited", for example:
If you export a view to another website, those images attached to that view will be exported too.

So there isn't anything to do with permissions or security.

#1189918

Ben

Thank you for the information Luo Yang.

I gather there are no plans to change this in any way?

#1190040

Yes, you are right, there isn't plan to change it in view, but it will be changed in Views content template.

#1190567

Ben

Thank you to both Luo Yang and Beda for your help with this.