Really Silly OpenOffice HTML Editing Question
Hi. I'm sure I'm being completely dense here, but I can't seem to find how to put link targets into OpenOffice html documents properly. The only way I can do it is to select some text in my document, and call up character formatting on it. I then go to 'hyperlink' and set the name. Returning to the document, I can see no evidence that the word is a hyperlink, but when viewing html source, I can see that it has the appropriate <a name="blah">This</a>.
Having to select a word is ok, but not knowing which words have link targets behind them makes editing not very friendly. Is there anyway to fix this problem? Thanks in anticipation, Ross-c |
Just select the text then go "Insert -> Hyperlink"
|
Re: Really silly....
Hi. That's what I'm doing. The problem is not that I can't insert hyperlinks, but that I can't see where the link targets (rather than hyperlinks going elsewhere) are in my page. If I add a link (using format-character), and just add a 'name', without a 'target', then it creates the correct html (as when I view 'page source'). But, when I return to the normal layout, I can't see any difference between the words with the 'name' target added (as in <a name="blah">word</a>), and others. Therefore, I have difficulty remembering which words have targets behind them, and which ones don't.
I'm confused. I was sure that there would be an easy way to add a link target to a page, but can't find one. Is |
It looks ok on mine. I don;t use OO for html, I usually just use a text editor. Maybe you should look at the source and add some colors for links.
|
Re: Really silly....
Hi. Could you please tell me (i) which version of OO you're using, and (ii) exactly what you see on your screen. This is a link with no target, but a name. If I select a word, choose format->character->hyperlink, and enter a name, but no target, then when I return to the editor, the word with the named link is completely unchanged, and cannot be told from words with no link attached. I'm using 1.0.2.
What version are you using? Thanks in anticipation, Ross-c |
1) Highlight the text
2) Go to Insert -> Hyperlink 3) Enter web address or HTML file in target 4) Click Apply 5) Click Close You should see the text that you highlighted will have an underline text. Click on it and it will open up your default Web Browser. Though you need to setup the default Web Browser yourself. The name in anchor tags or <a> is for using with bookmarking or for javascripts. Target in anchor tags are the links to web pages. BTW, learn how to write HTML pages instead of learning GUI programs to make HTML files. GUI programs waste server resources because GUI programs puts tons of useless information in the HTML file. For more information about HTML go to http://www.htmlgoodies.com |
Re: Really silly...
Hi. Electro, thanks for taking the time to reply. But, the problem I'm having is not the same as the one you give a solution for. Everything works fine if I put a html link target (e.g. http://www.google.com) into the hyperlink. What I'm trying to do is create a anchor, e.g. an anchor called "section2", which you might refer to as http://www.mydomain.com/mypage.html#section2
Most other html editors have simple interfaces to allow you to put anchors into pages, and see where an anchor is when working in wysiwyg mode. But, I cannot find any usable equivilent to this functionality in OpenOffice. I can make anchors, but only by creating a hyperlink which has a name specified but no target set. If I switch to html source mode, I can verify that it's creating the correct html code, but when viewing in wysiwyg mode, cannot see which text in my document has anchors attached to it. Does anyone know how to create anchors in the OO HTML editor? Thanks in anticipation, Ross-c |
I'd suggest using the excellent
online-help :} .... Code:
Use this command to assign a hyperlink to the selected text. The hyperlink is a reference to a document on the Internet or your local network file system. You can also insert an HTML anchor (as a Bookmark) to reference a specific position in a document. Cheers, Tink |
All times are GMT -5. The time now is 11:56 PM. |