Page tree cuts off page titles horizontally
See the attached screenshot.
The page tree cuts off page titles that are too long.
Also it doesn't matter if a single page title is just very long or you have a hierarchy of too many subpages. - In both cases, the titles will be cut off.
- Offer horizontal scrolling as soon as a title gets cut off
- Show the complete page title on mouse hover.
The second solution would probably have its problem with touch devices and would fail on too many page sublevels...
#5 Updated by Daniel Flaum 6 months ago
This issue exists for me in TYPO3 10 in both Firefox 75 and Brave 1.7.92 (the latter is Chromium variant, and is at Chromium 80.0.3987.163). This is on Fedora 31.
In my case, the issue appears because my page tree is exceptionally deep. Screenshot included.
It's important to note that the pagetree in the Link Browser in the RTE does not have this problem--it does scroll from side-to-side when necessary. That pagetree is different from the one provided by the Page module, since it can drill down to individual content elements. But evidently the solution already lurks somewhere in source code. I'll try to locate it.
#6 Updated by Daniel Flaum 6 months ago
- Complexity set to easy
I did some experimentation, and found that the pagetree provided by the RTE Link Browser is HTML-based. It's constructed out of a
The backend's general pagetree, however, is an
<svg>, which has a
width attribute set to
width attribute is set to an integer value greater than 300 (which is the current width of the pagetree) then a horizontal scrollbar is provided. Integer values are interpreted as pixel units, and I used a value of 600 to test things myself.
If the width of the
<svg> can be calculated whenever the pagetree is redrawn (perhaps by querying the width of the
<g class="nodes-wrapper"> which is its immediate child), then the desired functionality will be achieved.
<svg> also has a
- TYPO3 Version changed from 10 to 9
Why got this changed from v9 to v10? This is a major issue already on v9. We are updating now all v8 setups to v9. And v9 is still labeled LTS and all our setups (which all are quite big with lots of pages) are basically unusable because of this...
There must at least be the posisbility to show the full title as a tooltip on hovering, better would be scrolling. One customer explicitly asked for scrolling because the tree is so deep that resizing would make the edit area to small and unusable instead.