Page 1 of 1

Display document path in title bar

Posted: Thu Dec 06, 2007 12:03 am
by cbriere
Hi:

I'm new to openOffice and its great!

I have one problem.

In Writer, I am unable to see the document path in the title bar, (the left-up part of the working page).
When I am working on a document, I would like to see the complete path in the Title Bar of the Writer not just the filename. I need to know at all instances in WHAT directory I am working on.

This is possible with MSWord and I am sure it is also possible with Writer, but just can't find where to set this feature.

Please help since I have saved several documents in the wrong directories because I am unable to see in what directory I'm working.

Thanks,

Charles

Re: How to display the document path in the title bar

Posted: Thu Dec 06, 2007 1:25 am
by Bhikkhu Pesala
I don't know of any such option. You can insert a variable for the document path from Insert, Fields, Other, Filename, Path, and put that in a header or footer. That's the nearest I know of.

Re: How to display the document path in the title bar

Posted: Thu Dec 06, 2007 5:24 am
by cbriere
Hi Bhikkhu,

Thanks for the try... but that is not what I'm looking for.

Just realized that WordPerfect also displays the complete path on the top title bar.

Charles

Re: How to display the document path in the title bar

Posted: Thu Dec 06, 2007 9:44 am
by probe1
Open the "Web" toolbar to see the full URL of the document.

Re: How to display the document path in the title bar

Posted: Fri Dec 07, 2007 12:30 am
by JohnV
Hey probe 1,
Where is the "Web" toolbar? It's not in my View > Toolbars list.

This little macro will show the path when desired.

Code: Select all

Sub ShowPath
MsgBox ConvertFromURL(ThisComponent.getUrl)
End Sub

Re: How to display the document path in the title bar

Posted: Fri Dec 07, 2007 6:37 pm
by foxcole
You can also view the current file path in an address-style list box in a toolbar.

Go to View> Toolbars> Customize. Choose a toolbar to display the list box (Standard is a good choice if you haven't hidden it, because it's not a context-sensitive toolbar so will always display). Select the option "Load URL."

I've grown fond of this option because it keeps an edit history, so I can use it to directly open any OOo-compatible file I've edited on any drive, without having to navigate there and without having them in the Recent Documents list. (It lists graphics files, for example, and MS Office formatted files, text files, all OOo formats, etc.)

Re: How to display the document path in the title bar

Posted: Fri Dec 07, 2007 7:05 pm
by probe1
JohnV wrote:Hey probe 1,
Where is the "Web" toolbar? It's not in my View > Toolbars list.
:oops:
I customized the "Format" toolbar as foxhole describes it - and forgotten about that.

And I messed up the name, because I'm looking at "the other product" at my customer's office all day long...

Re: How to display the document path in the title bar

Posted: Sat Dec 08, 2007 7:13 pm
by cbriere
Well...

Thanks you all for the tips.

Another issue: I need a WIDER url field.

Since the complete path is quite long, several directories deep, how do I extend the width of the LoadUrl field to display the complete path?

Thanks,

Charles

Re: How to display the document path in the title bar

Posted: Sun Dec 09, 2007 1:15 pm
by foxcole
There doesn't seem to be a way to change the width of that field, even if you put it in its own toolbar. The only workarounds I can see are:
- Click on the drop-down arrow to expand the list, which widens to the length of the longest path so you can see the entire path there.
- Click on the address itself (this automatically selects the entire contents of that field), then copy and paste it wherever you need it, such as the "open" dialog. If it's a long path that you might need to use often, you might want to paste it into a plain text file (such as in Notepad or Akelpad), then you can switch to that window and select all (Ctrl+A) to quickly copy the path.

Re: How to display the document path in the title bar

Posted: Sun Dec 09, 2007 11:56 pm
by acknak
Crude workaround: File > Save As will display the complete path to the file.

You can also display the path using a field. Put it in a frame, or give it a style that can be turned on/off, or not printable.

Re: How to display the document path in the title bar

Posted: Tue Oct 04, 2016 11:33 am
by PopStarWannabe
foxcole wrote:
Go to View> Toolbars> Customize. Choose a toolbar to display the list box (Standard is a good choice if you haven't hidden it, because it's not a context-sensitive toolbar so will always display). Select the option "Load URL."

I've grown fond of this option because it keeps an edit history, so I can use it to directly open any OOo-compatible file I've edited on any drive, without having to navigate there and without having them in the Recent Documents list.
Is there a way to clear this edit history every now and then ?

Also, as of OpenOffice 4.1.2 is there still no "natural" way to see this in the title bar?

Re: How to display the document path in the title bar

Posted: Tue Sep 17, 2024 2:25 am
by tardolejohn
Wow, here it is September 2024 and still no FULL PATH DISPLAYED FOR LIBRE DOCUMENTS? Pretty sad.
Just to refresh, the method shown in the solution above does work, no extra clicks required after initial set-up. AND, I discovered long ago that if you click on Save As, you can see your full path.

Re: How to display the document path in the title bar

Posted: Tue Sep 17, 2024 3:39 am
by robleyd
This topic started in relation to OpenOffice.

This feature has been requested, for LO, as an enhancement here and here. You may wish to add your support to one or another of those requests..

Re: How to display the document path in the title bar

Posted: Tue Sep 17, 2024 10:38 am
by RoryOF
While not an immediate answer to the query, note that /File /Properties : General tab shows the current location (file path) of the file. Also other useful information such as creation/modify dates, total editing time and number of revisions (i.e., Saves of the file)

Re: How to display the document path in the title bar

Posted: Tue Sep 17, 2024 2:29 pm
by Lupp
This topic is nearly 17 years old and has experienced a revival. Quite admirable!
However, it's still listed in the Writer forum though it obviously is relevant for any component.
The question how to customise the titlebar, however, was asked more often than once in different places including different sites.
Currently the answer can only be
EITHER "You need custom code."
OR "Create a feature request."
Since I much dislike the suppression of relevant information I created related code many years ago. On 2023-06-28 I also posted the slightly reworked code In the "Code Snippets" forum: viewtopic.php?t=110156 and a few days later in https://ask.libreoffice.org/t/extended- ... -bar/93057.
The "manual" document also containing the code as text was downloaded often, but I never got a comment. Since the little package is one of the few solutions which I not only provided for others, but actually use myself every day, I now made a reworked manual also demonstrating the effects. (It shows more information in the titlebar than most users will want, but is configurable.) See:
ExtendedInformationInTitlebarReworked.ods
(90.24 KiB) Downloaded 53 times
This should work in any version of LibreOffice or OO.o/AOO.
General remark: You only see the effects in the example if you permit document macros. As always in such cases you should check the code for the absence of malign parts.