Display document path in title bar

Discuss the word processor
Post Reply
cbriere
Posts: 5
Joined: Wed Dec 05, 2007 11:51 pm

Display document path in title bar

Post 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
User avatar
Bhikkhu Pesala
Posts: 1253
Joined: Mon Oct 08, 2007 1:27 am

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

Post 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.
Idiot Compassion
LibreOffice 6.0.4 on Windows 10
cbriere
Posts: 5
Joined: Wed Dec 05, 2007 11:51 pm

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

Post 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
User avatar
probe1
Volunteer
Posts: 277
Joined: Mon Oct 08, 2007 1:34 am
Location: Chonburi Thailand

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

Post by probe1 »

Open the "Web" toolbar to see the full URL of the document.
Cheers
Winfried

DateTime2 extension: insert date, time or timestamp, formatted to your needs
JohnV
Volunteer
Posts: 1585
Joined: Mon Oct 08, 2007 1:32 am
Location: Kentucky, USA

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

Post 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
User avatar
foxcole
Volunteer
Posts: 1507
Joined: Mon Oct 08, 2007 1:31 am
Location: Minneapolis, Minnesota

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

Post 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.)
Cheers!
---Fox

OOo 3.2.0 Portable, Windows 7 Home Premium 64-bit
User avatar
probe1
Volunteer
Posts: 277
Joined: Mon Oct 08, 2007 1:34 am
Location: Chonburi Thailand

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

Post 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...
Cheers
Winfried

DateTime2 extension: insert date, time or timestamp, formatted to your needs
cbriere
Posts: 5
Joined: Wed Dec 05, 2007 11:51 pm

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

Post 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
User avatar
foxcole
Volunteer
Posts: 1507
Joined: Mon Oct 08, 2007 1:31 am
Location: Minneapolis, Minnesota

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

Post 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.
Cheers!
---Fox

OOo 3.2.0 Portable, Windows 7 Home Premium 64-bit
User avatar
acknak
Moderator
Posts: 22756
Joined: Mon Oct 08, 2007 1:25 am
Location: USA:NJ:E3

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

Post 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.
AOO4/LO5 • Linux • Fedora 23
PopStarWannabe
Posts: 9
Joined: Mon May 04, 2015 4:43 pm

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

Post 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?
OpenOffice 4.1.2 / Windows 10 Pro x64
tardolejohn
Posts: 1
Joined: Tue Sep 17, 2024 2:16 am

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

Post 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.
LibreOffice 7.6.4.1 (x86 64 bit) Windows 11
User avatar
robleyd
Moderator
Posts: 5312
Joined: Mon Aug 19, 2013 3:47 am
Location: Murbko, Australia

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

Post 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..
Slackware 15 64 bit
Apache OpenOffice 4.1.15
LibreOffice 24.8.3.2; SlackBuild for 24.8.3 by Eric Hameleers
---------------------
Roses are Red, Violets are Blue
Unexpected '{' on line 32
.
User avatar
RoryOF
Moderator
Posts: 34840
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

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

Post 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)
Apache OpenOffice 4.1.15 on Xubuntu 22.04.5 LTS
User avatar
Lupp
Volunteer
Posts: 3635
Joined: Sat May 31, 2014 7:05 pm
Location: München, Germany

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

Post 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 49 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.
On Windows 10: LibreOffice 24.8.3 and older versions, PortableOpenOffice 4.1.7 and older, StarOffice 5.2
---
Lupp from München
Post Reply