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

Embeddable galleries #235

Closed
oparoz opened this issue Jul 26, 2015 · 14 comments
Closed

Embeddable galleries #235

oparoz opened this issue Jul 26, 2015 · 14 comments
Milestone

Comments

@oparoz
Copy link
Contributor

oparoz commented Jul 26, 2015

User requested

User type: External

User level: Advanced

Description

It should be possible to create a special link which just renders the photowall, including the controls, but without the header and footer.
We could also make the controls optional.

Those links would need to be loaded in an iframe and there may be some Javascript conflicts.

embedded_galleries

Competitive products

Benefit / value

Make ownCloud hosted content available everywhere

Risk / caveats

Sponsorship

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@arpee
Copy link

arpee commented Aug 17, 2015

+1

@arpee
Copy link

arpee commented Aug 17, 2015

At the moment - it seems it is not possible to embed gallaries in an iframe - even with all controls enabled etc.

@oparoz
Copy link
Contributor Author

oparoz commented Aug 17, 2015

@LukasReschke - Do you have some doc handy on the CSP policy which needs to be applied at the controller level for people to be able to embed the HTML template they receive?

@setnes
Copy link
Contributor

setnes commented Aug 29, 2015

I like this idea. A smaller step might be to somehow create a special share link (using the share interface) that includes html code you could use to embed a thumbnail link to a gallery directory. That might be a smaller hurdle.

@oparoz
Copy link
Contributor Author

oparoz commented Aug 29, 2015

The plan is to use the new REST API (#5) for that. Something like /api/gallery would send you the HTML and links to the JS, thumbnails and previews links.

@oparoz oparoz added gsoc and removed sponsor needed labels Mar 2, 2016
@sagar-shah94
Copy link

i am interested to work on this project because i have worked on webservices so much whenever i read the idea i thought i could help develop this api so any other website can embed gallery into their website and use all functionality of gallery offered by our website

@oparoz
Copy link
Contributor Author

oparoz commented Mar 13, 2016

Cool :). There is already an API, but one or two new routes should be defined.
The biggest problem to solve from my pov is how to make sure that it's easily embeddable in various CMS without having to modify security settings there.
Luckily, we have an expert at ownCloud which will be able to assist.

@gkarugi
Copy link

gkarugi commented Mar 17, 2016

The plan for embedding a gallery from ownCloud to other webpages is a great one.From my POV, the iframe idea will be much simpler to implement because the web is heterogenous where websites are built using different languages.This also is not a very customizable way for an end developer willing to integrate the feature to his/her webpage.
The other option is create the routes providing the endpoints for the ownCloud gallery API then develop a php package which other developers can use to integrate the feature to their websites.This will give control to the website implementers on how they want the gallery feature to appear in their websites.
This can be extended in due time to other languages as well.
I would really want to contribute to this project.

@oparoz
Copy link
Contributor Author

oparoz commented Mar 17, 2016

Yes, using an iframe makes it very easy to quickly add a gallery without having to move files to the CMS, forum, etc., but we have to make the result flexible so that it can fit most use cases. Some people may not want the embedded slideshow per example.

There are already endpoints in Gallery for people who want to retrieve a list of images or previews:
https://github.com/owncloud/gallery/wiki/RESTful-API

They're free then to customise any Gallery app to present the information they get.

@gkarugi
Copy link

gkarugi commented Mar 19, 2016

I think an embeddable widget can work perfectly for this project. The only thing the end user will need to do is put a code snippet containing a special code to their webpage and a gallery will be shown in return.

Your thoughts?

@oparoz
Copy link
Contributor Author

oparoz commented Mar 19, 2016

Yes, this could be one of the features of this project.

@gkarugi
Copy link

gkarugi commented Mar 19, 2016

What other features were you thinking of?

@oparoz
Copy link
Contributor Author

oparoz commented Mar 19, 2016

I didn't really think about all the details. There are plenty of examples of API from platforms which specialise in serving images and videos and we should at least provide a basic set which matches what they can offer.

It has to be easy to set up and flexible. Some people will want a photowall, others a slideshow, etc. It's all about empowering ownCloud users so that they can keep their data where it is without giving up on ease of share.

@oparoz
Copy link
Contributor Author

oparoz commented Sep 4, 2016

This issue was moved to nextcloud/gallery#63

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

No branches or pull requests

5 participants