» List all forums
» » Forum: Web Interfaces
» » » Thread: Website Linking
|Print at Apr 27, 2015 7:13:14 PM||View all posts in this thread on one page|
|Posted by MWMiles at Dec 24, 2008 5:02:30 AM|
I know that Sword has a built-in protocol that will allow you to add links on a web site and any visitors that are running Sword can click on these Sword protocol links and have their Sword-based Bible program open up to the reference cited in the link. I have zero clue about how this is done. I have been on a site that had it, but it is now down, otherwise I'd play detective and figure this out.
Can anyone here help me get some info on how this works and what the syntax is for this protocol? Do all Sword front-ends use this protocol?
Thanks in advance,
|Posted by Osk at Dec 30, 2008 8:55:08 AM|
Re: Website Linking
This page has a couple of example links: http://www.crosswire.org/~chrislit/testlinks.html
The top link is the format used by Logos. If you have Logos installed, clicking it will open to the appropriate verse in that software. If you don't have Logos installed and you do have The SWORD Project for Windows installed, that will open to the appropriate verse.
The bottom link shows the format used by many Sword front-ends. I couldn't tell you which actually support it, but that page (and thus the format itself) date to around 2001, so they've all had ample opportunity to implement it.
The basic format for Sword's private protocol calls is sword://<module ID>/<key value>. The key value would be a verse reference to a Bible (generally well supported), but could also be other key types (words, dates, etc.) for other module types (dictionaries, daily devotionals, etc.).
Current timezone is GMT
Apr 27, 2015 7:13:14 PM