? ? ? Success

User tests: Successful: Unsuccessful:

avatar LivioCavallo
LivioCavallo
21 Aug 2017

The Problem

Titles and pagebreak chapter names in Articles tend to be quite long, particularly in european (continental) languages (English is shorter), so you end up having a huge TOC that occupies ALL THE PAGE WIDTH, extending for MANY ROWS...
In that situation the TOC occupies all the browser windows so:

  • the Title is no more the most evident information in the page, as it is someway "shadowed" by that big TOC, and
  • the article body overflows at the botton and you have to scroll down to read it.

The Solution Proposed by this PR

If you could have a main TITLE, followed by an INDICATION that there are subsequent chapters, with a button to EVENTUALLY SHOW them (the TOC), followed by the article body (all possibly contained in the browser window), I think the layout will be cleaner and more readable.

Summary of Changes

Added two options in PageBreak plugin so you can select if TOC will be always visible or it can be expanded/collapsed by user using a toggle button; you can set default toc status too (collapsed/expanded).
Minimal update in beez3 and protostar templates to accomodate padding and margins when toggle button is shown.

Testing Instructions

Create and publish an Article with some pagebreaks, with long chapter names (as it's usual, at least in continental european languages).

Expected Result

The Article TITLE should be evident and the article BODY first rows should be readable without having to scroll down the browser windows.

Actual Result

The TOC occupies the main portion of the browser windows, so the Title is not the prominent information and the article body is not readable without scrolling down.

Additional Info

In J!3.7.5 and in staging branch there is no option for article TOC to be user expandable/collapsable.

With this PR, article TOC will be collapsed/expanded on user click. To activate this feature you'll just have to go in pagebreak plugin and set: Collapsable TOC to Show / Default TOC show status to Hide

avatar joomla-cms-bot joomla-cms-bot - change - 21 Aug 2017
Category Administration Language & Strings Front End Plugins Templates (site)
avatar LivioCavallo LivioCavallo - open - 21 Aug 2017
avatar LivioCavallo LivioCavallo - change - 21 Aug 2017
Status New Pending
avatar LivioCavallo LivioCavallo - change - 21 Aug 2017
Title
Collapsable TOC - new PageBreak plugin options and improoved view
Collapsable TOC - new PageBreak plugin options and improved view
avatar LivioCavallo LivioCavallo - edited - 21 Aug 2017
avatar LivioCavallo LivioCavallo - change - 21 Aug 2017
Labels Added: ? ?
avatar brianteeman
brianteeman - comment - 22 Aug 2017

Changes to css should not be done directly in the css file but instead in the less files and then compiled using the generatecss.php script in the build folder - see https://docs.joomla.org/Joomla_LESS/en

avatar brianteeman
brianteeman - comment - 22 Aug 2017

Is there really a need for this?

avatar LivioCavallo
LivioCavallo - comment - 22 Aug 2017

Ok, thanks. I updated less file for protostar. Beez3 seems not to use .less to generate layout.css.

Far from beeing a philosophical question (what do we really need?) I understand your aim to keep Joomla! "clean", to avoid superflous functionalities and to include just really useful tools in Joomla!

For that goal I think that a simple tool like this, that allows the user to better organize the page layout and to save space will be useful.
In fact titles and pagebreak chapter names in user submitted articles tend to be quite long, particularly in european (continental) languages (English is shorter), so you end up having a huge TOC that occupies all the page width, extending for some rows... that occupies all the browser windows so the Title is no more the main information in the page, as it is someway "shadowed" by that big TOC, and the article body overflows at the botton and you have to scroll down to read it.
If you could have a main TITLE, followed by an indication that there are subsequent chapters, with a button to show them (the TOC), followed by the article body (all possibly contained in the browser window), I think the layout will be cleaner and more readable.

My 2c.

avatar brianteeman
brianteeman - comment - 23 Aug 2017

Is there a reason that this new functionality is disabled if you dont display the title?

Is there a better way to display and describe the show/hide button - it just looks wrong

avatar LivioCavallo
LivioCavallo - comment - 23 Aug 2017

If the title is not shown, the user does not know what the button refers to, given the text "show/hide"; so I tought it was better to keep things togheter.
An alternative would be to use another text in button, something like "Toggle article index"; this would also permit to change code logic to show the button also if title is not displayed.
I am not sure what is better.

avatar brianteeman
brianteeman - comment - 23 Aug 2017

i still dont see the need for this in the core. it could easily be an alternative plugin

avatar franz-wohlkoenig franz-wohlkoenig - change - 1 Nov 2017
Status Pending Needs Review
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 1 Nov 2017

Status is set on "Needs Review".


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/17660.

avatar LivioCavallo LivioCavallo - change - 1 Nov 2017
The description was changed
avatar LivioCavallo LivioCavallo - edited - 1 Nov 2017
avatar LivioCavallo
LivioCavallo - comment - 1 Nov 2017

I updated the description to highlight that there is a problem, solved by this PR.

avatar franz-wohlkoenig franz-wohlkoenig - change - 11 Apr 2019
Category Administration Language & Strings Front End Plugins Templates (site) Administration Front End Plugins Templates (site)
avatar Quy
Quy - comment - 16 May 2019

Rebase for J4?

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 16 May 2019

@LivioCavallo please rebase on J4 as new Features go in J4.

Thanks for Hint @Quy.

avatar franz-wohlkoenig franz-wohlkoenig - close - 16 May 2019
avatar franz-wohlkoenig franz-wohlkoenig - change - 16 May 2019
Status Needs Review Closed
Closed_Date 0000-00-00 00:00:00 2019-05-16 05:18:36
Closed_By franz-wohlkoenig
Labels Added: ?
Removed: J3 Issue
avatar joomla-cms-bot joomla-cms-bot - change - 16 May 2019
Category Administration Front End Plugins Templates (site) Administration Language & Strings Front End Plugins Templates (site)

Add a Comment

Login with GitHub to post a comment