Sefaria-Project icon indicating copy to clipboard operation
Sefaria-Project copied to clipboard

interface for embedding quotes in other web pages

Open bachrach44 opened this issue 10 years ago • 7 comments

A potential feature that might be interesting.

What if we made some sort of interface that could be used by other people to embed quotes (in either English, Hebrew, or both) into other web pages? Many Jewish related websites and blogs quote from various books from time to time, and they usually just do it by copy-pasting text into a <blockquote> tag (or something similar). What if we made an interface people could use to import quotes that would look similar to the source sheets. Website authors could just put in the HTML they need, and the result would be nicely formatted and link to sefaria (sort of like the source sheets).

bachrach44 avatar Mar 14 '14 13:03 bachrach44

I like the idea

EliezerIsrael avatar Mar 16 '14 11:03 EliezerIsrael

Yeah, this is a great idea. There's some beginnings of it already -- source sheets have a "Embed Sheet" option. When a sheet has ?embed=1 they shed the header and some extra margin. I have a stub for this in the reader as well

  • "?embed=1" will loose the header. I think some other URL parameters to specify language and layout, likely hiding commentary by default, perhaps hiding context as well could make this all work better. Those parameters would be useful in general -- although it always may be the case that it is better to generate this "embed a quote" view from scratch, rather than building it all on top of the reader as it exists now.

Fleshing this out could also be a great project for any interested volunteers.

On Sun, Mar 16, 2014 at 4:05 AM, Lev Eliezer Israel < [email protected]> wrote:

I like the idea

Reply to this email directly or view it on GitHubhttps://github.com/blockspeiser/Sefaria-Project/issues/81#issuecomment-37754313 .

blockspeiser avatar Mar 17 '14 20:03 blockspeiser

How is this different than the django-python API? People could use that, and a linking feature could be added to the API, no?

shelfgot avatar Jul 06 '14 15:07 shelfgot

Anyone is currently able to build their own embedding feature using the API (www.g-dcast.com was doing this for a while, thought not sure if they still are). The difference is to have an option that lets people embed in their site without having to build or design the code to talk to our API themselves. Anyone with a WordPress blog, for example, can drop in a embed code (iframe) if we create it all for them, but not everyone with a wordpress blog knows how to write the Javascript / HTML etc needed to do it themselves.

blockspeiser avatar Jul 06 '14 17:07 blockspeiser

The API is great but it's only useful for developers. For the average blogger it's too much. I was thinking about something along the lines of youtube - when you click on share and then embed it gives you the html code to embed a video. The person doesn't need to know a thing about HTML or any coding language, they just cut and paste.

bachrach44 avatar Jul 06 '14 18:07 bachrach44

fyi -- the gdcast piece is still in development -- just pushed to the back-burner as other 'more essential' stuff has come up. I'm happy to take the code I'm writing their and generalize it -- but I have no time table on it right now.

rneiss avatar Aug 07 '14 13:08 rneiss

@bachrach44 @blockspeiser is this issue still avaiable for me to tackle?

yishairasowsky avatar Apr 01 '20 17:04 yishairasowsky