University of Valencia logo Logo UVcommunication Logo del portal

The folded text component

The folded text feature is a new function in the Universitat de València’s web content management system that allows users to conveniently present a collection of texts which, due to their length, would otherwise require endless scrolling on a single page using a system of drop-down boxes.

29 february 2024

In order to implement this function in any of the pages, we have to generate a component to which we will assign the ‘TPCTextsLliuresPlegats’ template. Once we have the component, we generate the literals (LIT) and open texts (TL) that we put which we will add one by one to the “Elementos relacionado¨ (related elements) field of the component and assign them the appropriate order of preference.

Every LIT corresponds to the headline that will appear in the collapsed window, and the subsequent TL will correspond to the hidden text that will appear when you click on the expandable window, which will display the headline we have placed in the upper LIT. It is important to keep the sequence LIT>TL>LIT>TL, always making sure that each LIT corresponds to its immediate TL, as shown in the image below.

As the result, as we can observe on the Home Page image, there are drop-down windows with a headline that hide the text of the corresponding TL. With this function the presentation of the news and images is easier and more practical for navigating the website and it helps the user to localize the needed content faster.

Tags