ctf0 / Laravel-Media-Manager

A "Vuejs & Laravel" Media Manager With Tons of Features
MIT License
829 stars 179 forks source link

[Question] Media from Modal - entry folder #193

Closed ChristianC1123 closed 2 years ago

ChristianC1123 commented 3 years ago

Hello,

I use the Manager from a Modal and I use cover and links on the page.

Is it possible to overwrite the entry folder on local storage only for the links?

Screenshot 2021-06-21 154958

Thanks for your help.

ctf0 commented 3 years ago

what u mean ?

ChristianC1123 commented 3 years ago

I Screenshot 2021-06-22 090357

Is it possible to set the initial folder for the media manager? I use the component in two places and want to set a different initial folder for each.

ctf0 commented 3 years ago

no its not possible, currently u can only restrict the paths for each.

ChristianC1123 commented 3 years ago

Thank you, I will tryAm 22.06.2021 12:03 schrieb Muah @.***>: doesnt something like work for u ?

—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.

ChristianC1123 commented 3 years ago

Here is my feedback

Doesn't work. <media-modal item="links" :name="inputName" :multi="false" :restrict="{ path: 'Zusatzdokumente' }"></media-modal>

And your snipped

<media-modal item="links" :name="inputName" :multi="false" :restrict="{ 'path' => 'Zusatzdokumente' }"></media-modal>

shows me this error in my browser console

`[Vue warn]: Error compiling template:

invalid expression: Unexpected token '=>' in

{
            'path' => 'Zusatzdokumente'
         }

Raw expression: :restrict="{ 'path' => 'Zusatzdokumente' }"

2513|
2514| 2515| | ^^^^^^^^^^^^^^^

(found in )`

ctf0 commented 3 years ago

plz make a repo so i can reproduce with

ChristianC1123 commented 3 years ago

https://github.com/ChristianC1123/mediamanager_test

ctf0 commented 2 years ago

@ChristianC1123 ur repo is incomplete, plz test ur issue with the demo repo and reply back if the issue still exists.