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

Showing multiple sites in admin page #58

Open
alcacer0 opened this issue Jul 18, 2019 · 1 comment
Open

Showing multiple sites in admin page #58

alcacer0 opened this issue Jul 18, 2019 · 1 comment

Comments

@alcacer0
Copy link

alcacer0 commented Jul 18, 2019

Hello!
I was wondering if we have the option to show different sites in the admin panel.
I'm currently creating two sites, with different names, so I add these two urls:

    a_site = FileBrowserSite(...) 
    b_site = FileBrowserSite(...) 
    urlpatterns =  [
            path(A_BROWSER_URL, a_site.urls),
            path(B_BROWSER_URL, b_site.urls)
    ]

I can manually access the urls (*/browse, etc..) of the two filebrowser sites with this configuration.

I was looking at merge request #5 and I see we have the FileBrowser section in the admin page. The link redirects to the first site of the two created before, but I would like to have a link for each site. Is this possible?

Thanks!

@smacker
Copy link
Owner

smacker commented Dec 4, 2019

Hi @Alcasser !

Currently, filebrowser doesn't support such feature.
I have never had multi-site setup but maybe passing current_app would help, I'm not sure.
If you solve the issue, PRs are welcome.

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