Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
07-21-2003, 01:58 PM
|
#1
|
Member
Registered: Jun 2003
Location: UK
Distribution: Redhat 9 (work) Fedora 1 (home)
Posts: 171
Rep:
|
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
|
|
|
07-21-2003, 02:02 PM
|
#2
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
Just select the text then go "Insert -> Hyperlink"
|
|
|
07-21-2003, 02:11 PM
|
#3
|
Member
Registered: Jun 2003
Location: UK
Distribution: Redhat 9 (work) Fedora 1 (home)
Posts: 171
Original Poster
Rep:
|
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
|
|
|
07-21-2003, 02:30 PM
|
#4
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
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.
|
|
|
07-21-2003, 04:52 PM
|
#5
|
Member
Registered: Jun 2003
Location: UK
Distribution: Redhat 9 (work) Fedora 1 (home)
Posts: 171
Original Poster
Rep:
|
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
|
|
|
07-21-2003, 05:59 PM
|
#6
|
LQ Guru
Registered: Jan 2002
Posts: 6,042
Rep:
|
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
|
|
|
07-21-2003, 06:43 PM
|
#7
|
Member
Registered: Jun 2003
Location: UK
Distribution: Redhat 9 (work) Fedora 1 (home)
Posts: 171
Original Poster
Rep:
|
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
|
|
|
07-21-2003, 07:20 PM
|
#8
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
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.
To access this function...
Choose Format - Character - Hyperlink tab
Choose Insert - Envelope - Format tab page, click Edit - Character - Hyperlink tab
Choose Insert - Hyperlink
anchor
Cheers,
Tink
|
|
|
All times are GMT -5. The time now is 05:40 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|