Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

trigger readfolder/folder change on client side #345

Closed
7 of 17 tasks
nicpillinger opened this issue Sep 10, 2018 · 5 comments
Closed
7 of 17 tasks

trigger readfolder/folder change on client side #345

nicpillinger opened this issue Sep 10, 2018 · 5 comments

Comments

@nicpillinger
Copy link
Contributor

In raising this issue, I confirm the following (please check boxes):

  • I have read and understood the Wiki. Especially deploy and configuration articles.
  • I have checked that the bug I am reporting can be replicated, or that the feature I am suggesting isn't already present.
  • I have checked the pull requests tab for existing solutions/implementations to my issue/suggestion.
  • I realise that server-side connectors are provided by various contributors. The implementations are vary due to programming language features/limitations or other factors. Thus a particular connector may not implement, or partially implement, the API features.
  • I realise that any changes in configuration options and/or plugin parameters affect the plugin behavior. I specified all the differences from defaults in details.

I use the following server-side connector (check one):

  • PHP connector by servocoder
  • Java connector by fabriceci
  • Python3 Flask connector by jsooter
  • Python3 Flask connector by stevelittlefish
  • NodeJs connector by jlaustill and forestlake
  • ASP.NET Core connector by sinanbozkus
  • ASHX connector by richeflits
  • Other (specified below)

My familiarity with the project is as follows (check one):

  • I have never used the project.
  • I have used the project briefly.
  • I have used the project extensively, but have not contributed previously.
  • I am an active contributor to the project.

Hello - I'm wondering if there is any sort of client side api for this project? I want to try and trigger a readfolder action from the client (without having to reload the DOM/markup again) - is there any way to interact with the plugin client-side?

thanks

@nicpillinger
Copy link
Contributor Author

alternatively, is it possible to trigger re-initialization of the plugin (with a new expandedFolder in the url)?

@psolom
Copy link
Owner

psolom commented Sep 10, 2018

Yes, it's exists. It's not the client side API actually, but rather a few public methods of RichFilemanager jQuery plugin. They are well described here. I think that's exactly what you need.

@nicpillinger
Copy link
Contributor Author

Brilliant - exactly what I needed. Thanks 🙏

@nicpillinger
Copy link
Contributor Author

Hi @servocoder the loadFolder method is great but it doesn't allow me a way of opening the root folder, if I pass it "/" its trying to load "//" which isn't correct. I think its a simple change to the loadFolder so it doesn't always wrap the folder name you're trying to load?

@nicpillinger nicpillinger reopened this Sep 10, 2018
@psolom
Copy link
Owner

psolom commented Sep 11, 2018

Merged the fix in PR #346. Thanks!

@psolom psolom closed this as completed Sep 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants