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
Custom frontend (index/home page before login) #348
Comments
yeah. Seahub is also opensource. Just add what you need. |
erm that I know of and is what I am trying to do, what I am asking about or trying to understand is how or rather from which file is the behaviour controlled: What I want to do is serve a html/php based homepage when domain opens instead of the login page and instead open the login page manually via a login link |
Seahub is written in python, so the best way would be to extend the pages with python. In the wiki you can find which files you have to modify to change the layout |
erm that also I have already checked, but what I am trying to find out is how is the navigation of the seahub is working My initial thought was that the login page itself was the default root/index page and it had a check for cookie/session to see if a user is already logged in and if he is, redirect him to the library home. By the way, just to know, is seahub 100% made using the web/python APIs or has methods/codes of its own ? |
afaik redirect happens here (I'm not member of the team): seahub/seahub/views/__init__.py Line 75 in 79a21e0
If YOU want to work with seafile look in the code, work with it, learn how it works. |
thanks a ton !! Didnt expected it in a file called init.py as being a php-based developer I was looking for something directly like a htaccess/index.php and then into directly code of main files to try and find it The reason why I asked about if the seahub was using same webAPIs was because I was interested in creating a php based frontend for it based on the webAPIs for various functions,unless and ofcourse if there are functions/features in current seahub that can only be used via a python webserver |
Thats current documentation for the web api. http://manual.seafile.com/develop/web_api.html |
Asking here instead of creating a new ticket, but how do you go around creating a new page ? |
You need some basic knowledge of Django. On Mon, Jan 26, 2015 at 9:26 AM, shubhank008 notifications@github.com
|
Just asking it for knowledge purpose, but was there any particular reason or advantage for not creating seahub in PHP or RubyOnRails ? Or was it to have seahub interact with seafile and python APIs better ? Trying to understand as I have been thinking to recreate a php-based version of seahub |
There are truly lots of excellent tools/languages/frameworks that are On Mon, Jan 26, 2015 at 10:20 AM, shubhank008 notifications@github.com
|
Phew, thanks. Thats what I wanted to know, I thought Django/python had some advantage or was needed to interact with seafile on root level, if its just a matter of preference, then means I can most probably create a full frontend like seahub in php as well by using the APIs, though since its a much more large scale task, guess will hold on till really need it For the time being, will hire a freelance django/python dev to get my work done, learning a new language gonna be a new challenge |
I am wondering how is/are the pages handled when a user tries to access the domain seafile is installed on ? I see that initially a login page is shown always and if user is logged in, hes redirected to libraryHomePage.
I wanted to try and create a few custom html/php based frontend pages like a actual "home page", help page, FAQ, etc. which will open by default on domain root and open the seafile login page externally by its url (adding link in nav bar and such)
Basically have a proper website-like structure
I know one of the solutions is to host the seafile instances on sub-domains like cloud.xxx.com or on non-root like xxx.com/seafile but are there any alternatives ?
The text was updated successfully, but these errors were encountered: