Jump to content

Please read the Forum Rules before posting.

Photo

External hyperlinks in commentaries?


  • Please log in to reply
19 replies to this topic

#11 BaptizedBeliever

BaptizedBeliever

    Christian

  • Members (T)
  • PipPipPipPipPip
  • 924 posts
Offline

Posted 01 January 2012 - 01:25 PM

Funny, I thought it was the other way around. The hyperlinks in the "information" section worked for me without any formatting needed.

Brad

#12 BH.

BH.

    Utility Developer

  • Contributors
  • PipPipPipPipPip
  • 1,244 posts
  • LocationCalifornia
Offline

Posted 01 January 2012 - 01:26 PM

Funny - I thought they worked everywhere. :-)
Somebody I'm sure will test it out...

#13 BH.

BH.

    Utility Developer

  • Contributors
  • PipPipPipPipPip
  • 1,244 posts
  • LocationCalifornia
Offline

Posted 01 January 2012 - 02:00 PM

Indeed - Hyperlinks work everywhere in a CMTX file, The Inforation section, the book, chapter and verse sections.

#14 David

David

    e-Sword Supporter

  • Members (T)
  • PipPipPip
  • 30 posts
  • LocationTexas
Offline

Posted 01 January 2012 - 04:18 PM

Hyperlinks work in T3 and they should work in commentaries.
To enter a hyperlink in T3, you code it as you would in HTML.

<a href="http:\\your.url.com">Link Words</a>


Great, thank you! Can't wait to try it out...

#15 David

David

    e-Sword Supporter

  • Members (T)
  • PipPipPip
  • 30 posts
  • LocationTexas
Offline

Posted 01 January 2012 - 07:58 PM

Hmm, I'm not getting this to work in T3. When converted to a commentary module, the leading <a href=""> tag gets removed, leaving the URLLink Words</a> as plain text in the commentary. If you can get this to work, could you provide a sample file or a screenshot?

Thanks!

Edited by David, 01 January 2012 - 07:58 PM.


#16 BH.

BH.

    Utility Developer

  • Contributors
  • PipPipPipPipPip
  • 1,244 posts
  • LocationCalifornia
Offline

Posted 01 January 2012 - 08:07 PM

Here is an example. I've tested it and the link works in all areas. NOTE NOTE - you will see nothing special in e-Sword, no popup asking if you want to follow the link. Commentaries are using a different RTF control from Notes and Topics . But clicking on the link should cause it to open in your browswer.

#define description=Sample entry
#define abbreviation=CGEN
#define comments=Comments are entered here:
<a href="http:\\www.biblesupport.com">Bible Support</a>

Can be multiple lines
#define version=1

÷÷÷Gen - This is a summary of the book of Genesis
Multi-lined
<a href="http:\\www.BibleSupport.com">Bible Support</a>

÷÷Gen 1 - This is a summary of the first chapter of Genesis
and it can be mult-lined also.
<a href="http:\\www.BibleSupport.com">Bible Support</a>


÷Gen_1:1. In the beginning. These words remind us of the fact that everything human has a beginning.
<a href="http:\\www.BibleSupport.com">Bible Support</a>

÷Gen_1:2. Without form, and void. More exactly, “waste and void,” tohu wabohu. This signifies a state of wasteness and emptiness, but without implying that the earth was once perfect and then was made waste or desolate.

Edited by BH., 01 January 2012 - 08:34 PM.


#17 David

David

    e-Sword Supporter

  • Members (T)
  • PipPipPip
  • 30 posts
  • LocationTexas
Offline

Posted 01 January 2012 - 08:38 PM

Thank you, BH. Your code works. I think there were two things preventing my previous tests from working (one of which I still don't understand). Microsoft Word was automatically converting my <a href> tags to hyperlinks, which was causing problems. And, I have to copy and paste the quotation marks from your sample above for it to work. I don't know why I can't simply type the quotation marks with my keyboard, but at least it works. Thanks again!

#18 ebulerdo

ebulerdo

    e-Sword Fanatic

  • Contributors
  • PipPipPipPipPip
  • 127 posts
Offline

Posted 02 January 2012 - 02:56 AM

Hi David

I think I know what your problem is.

Normal straight quotation marks ("David") are required for the links to work in T3 and e-Sword. But Word automatically replaces straight quotation marks by curly quotation marks (“David”). Those are different symbols and e-Sword won't recognize them in hyperlinks.

That conversion is set by default in Word, but you can disable it in Tools - Autocorrect.

More information here:
http://office.micros...A010173242.aspx

Regards,

Carlos

#19 David

David

    e-Sword Supporter

  • Members (T)
  • PipPipPip
  • 30 posts
  • LocationTexas
Offline

Posted 02 January 2012 - 03:21 AM

Hi David

I think I know what your problem is.

Normal straight quotation marks ("David") are required for the links to work in T3 and e-Sword. But Word automatically replaces straight quotation marks by curly quotation marks (“David”). Those are different symbols and e-Sword won't recognize them in hyperlinks.

That conversion is set by default in Word, but you can disable it in Tools - Autocorrect.

More information here:
http://office.micros...A010173242.aspx

Regards,

Carlos


Great, thanks, Carlos! :)

#20 David

David

    e-Sword Supporter

  • Members (T)
  • PipPipPip
  • 30 posts
  • LocationTexas
Offline

Posted 02 January 2012 - 03:03 PM

To recap, for anyone reading this later, you can add web links to modules by using this format:

<a href="http://www.website.com">Text to be displayed here</a>


If you are using Microsoft Word to create your RTF documents, you'll need to turn off a couple of AutoCorrect features for this to work properly. In Word 2010, go to the File tab > Options > Proofing > AutoCorrect Options. Select the AutoFormat As You Type tab, and uncheck "Straight quotes" with "smart quotes" as well as Internet and network paths with hyperlinks.

Posted Image

In e-Sword, your mouse will not change to a hand cursor as it typically would when hovering over hyperlinks, but the links will still work when you click them. To give some indication to readers that the text is hyperlinked, you may want to change the displayed text to blue and add underline formatting.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users




Similar Topics



Latest Blogs