LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 07-21-2003, 12:58 PM   #1
Ross Clement
Member
 
Registered: Jun 2003
Location: UK
Distribution: Redhat 9 (work) Fedora 1 (home)
Posts: 171

Rep: Reputation: 30
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
 
Old 07-21-2003, 01:02 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
Just select the text then go "Insert -> Hyperlink"
 
Old 07-21-2003, 01:11 PM   #3
Ross Clement
Member
 
Registered: Jun 2003
Location: UK
Distribution: Redhat 9 (work) Fedora 1 (home)
Posts: 171

Original Poster
Rep: Reputation: 30
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
 
Old 07-21-2003, 01:30 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
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.
 
Old 07-21-2003, 03:52 PM   #5
Ross Clement
Member
 
Registered: Jun 2003
Location: UK
Distribution: Redhat 9 (work) Fedora 1 (home)
Posts: 171

Original Poster
Rep: Reputation: 30
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
 
Old 07-21-2003, 04:59 PM   #6
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
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
 
Old 07-21-2003, 05:43 PM   #7
Ross Clement
Member
 
Registered: Jun 2003
Location: UK
Distribution: Redhat 9 (work) Fedora 1 (home)
Posts: 171

Original Poster
Rep: Reputation: 30
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
 
Old 07-21-2003, 06:20 PM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenOffice Calc Chart Editing...sucks? R00ts Linux - Software 11 10-16-2007 06:10 AM
Viewing HTML Source in OpenOffice pre 2.0 slacker9876 SUSE / openSUSE 1 07-01-2005 01:40 PM
is there an html editor with remote files editing capabilities? odysseus.lost Linux - Software 2 06-16-2005 07:23 AM
Openoffice HTML editor kuba Linux - Newbie 2 02-16-2004 05:57 AM
starting openoffice as html editor not write breadbin Linux - Software 3 03-29-2003 04:56 AM


All times are GMT -5. The time now is 05:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration