changing the url names from index pages

A

Alison

Hi - my website, www.mywritingonline.com is up and running. I wanted to have
page names instead of page numbers in the url (i.e., currently file name
after the web site reads "/index_files/page0001.htm").
I thought I was doing this when, on each page, I went to tools/web page
options/ and then changed the web page title and the "publish to the web"
file name (.htm). However the pages still show up as
".../index_files/page0001, 2, 3 etc.htm".
Is there something else I can do to change this? Or are we stuck with page
numbers? For example I want someone to be able to go to
www.mywritingonline.com/music instead of
www.mywritingonline.com/index_files/page0002.htm.
Can anyone help?
Thanks
Alison
 
S

Spike

Close and on the right screen
Where you inserted the page name
Below that another blank space followed by ".htm"
You need to input the file name for each on each page in that space
It won't be exactly like your request but the URL will end with the
music.htm
by default publisher put all supporting files in the "index_files" directory
(that can be changed)

Spike
 
A

Alison

Hi Spike - I did do that (I changed the name in both places) and it is still
showing up as a page number in the url. That's why I'm confused. Any
suggestions? I have Publisher 2003 by the way...
Thanks
 
S

Spike

Alison

I do not have access to 2003 Using 2002 and 2007
Someone else here may have 2003 and an answer
Works well in 2007

Spike
 
D

DavidF

When you say it is still showing up as a page number, exactly what do you
mean? Are you saying that it has a page number in web page preview? When you
Publish to the Web, do you direct your web files to your computer before you
upload, and that is where the numbers still show?

Here are some more specific directions for 2003: Go to the page of your
Publisher publication that has the Music content. Go to Tools > Web Page
Options. In the second field called File Name type in the word "music".
Click OK. Then try a web page preview and look in the address of your
browser. You will have a long temp. file name, but if you look at the very
end of that path, you should see "music.htm". Do you? Or better yet, when
you Publish to the Web direct your files to somewhere on your computer where
you can find them easily...like your desktop. Assuming that you are using
the supporting folder option, then open the index_files folder and look at
the files. You should find a file named "music.htm".

Once you actually upload your files, then the link to your Music page will
be:
http://www.mywritingonline.com/index_files/music.htm
instead of
http://www.mywritingonline.com/index_files/page0002.htm

DavidF
 
A

Alison

Hi David - I actually did as you suggested. I typed in the file name as music
and clicked ok (I typed in every pages unique name, on each individual page,
and clicked ok actually). I save the file as index file to my computer, and
then upload. It still shows as
http://www.mywritingonline.com/index_files/page0002.htm. And it shows that in
preview mode too so I don't know why the "ok" is not holding the name. And
yet when I open the window again, the name is present in the field. No wonder
I'm confused!
Suggestions?
A.
 
A

Alison

Actually, when I went back and double checked this morning, on Preview mode
it is showing the page name as I want. It is only after I have saved it as
Index file to my computer, and uploaded to the host, that the name changes
back to page numbers. Don't know why!
 
D

DavidF

I am not sure of why it is not working, but one thing you are doing
incorrectly is how you are producing your web files. Based on your source
code it appears that you are doing a "file > save as a web page" to produce
your files, and as a result you are producing "rich" or "heavy" html code.
Instead go to File > Publish to the Web to produce your files, and try
directing them to your computer and then see if the file names have been
changed. When you Publish to the web you will get "filtered html" which is
not as bloated and do not have the Office tags.

Go to Help, About Microsoft Office Publisher and what version does that show
and what Service Pack version? If your version does not show SP2, then you
might want to download and install at least up to SP2.

If you do have Publisher 2003 SP2, then you might want to try Help > Detect
and Repair to see if perhaps that fixes what ever is wrong.

Let us know.

DavidF
 
A

Alison

Hi David - seems I did everything right except I saved it as a web page
instead of publish to web...once I did that, the url names appeared as I
wanted them to...
Thanks so much for your help! Now all I need to do is learn how to make
links open in new windows!!! :)
Alison
 
S

Spike

Try this:

Using the insert html code fragment feature, insert the following snippet
somewhere on your page where it won't be in the way:

<script language="JavaScript" type="text/javascript">function Show(Url,
Name, Features) { window.open(Url, Name, Features); }</script>


Then insert hyperlink, and paste the following in the hyperlink dialog:
javascript:Show('http://www.XXXX.COM/','')


XXXX.COM replace with your link ...

Spike
 
S

Spike

Correction:

<script language="JavaScript" type="text/javascript">function Show(Url,
Name, Features) { window.open(Url); }</script>

That makes the new window resizable by the user

Spike
 
D

DavidF

Alison,

Glad to hear it worked out. Two birds with one stone so to speak...better
code and custom file names.

Spike has given you the code for opening a new window. Here is a reference
that shows an alternative way, and explains in more detail how to work with
the ECMAScript. Note that the script in the article is incorrect as you do
need to drop the 'comment out' code of <!-- and // --> from the script in
the article.

http://office.microsoft.com:80/en-us/publisher/HA011587451033.aspx

DavidF
 
D

DavidF

This didn't show up the first time I posted it, so I will do it again:

Glad to hear it worked out. Two birds with one stone so to speak...better
code and custom file names.

Spike has given you the code for opening a new window. Here is a reference
that shows an alternative way using the insert html code fragment tool, and
explains in more detail how to work with
the ECMAScript.

http://office.microsoft.com:80/en-us/publisher/HA011587451033.aspx

DavidF
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top