Feature Wiki

Information about planned and released features

Tabs

Templates for Sub Styles

1 Initial Problem

Currently is not possible to use a seperate template (tpl.someHtml.html) for sub styles. This makes changes that need the DOM to be adapted impossible (e.g. a completely new look for the repository listing in some specific category).

2 Conceptual Summary

This can be changed by adding some additional logic for styles with sub styles checking if such a template exists inside the sub styles folder (see technical information).

3 User Interface Modifications

3.1 List of Affected Views

None

3.2 User Interface Details

-

3.3 New User Interface Concepts

-

4 Technical Information

The following snippet makes a proof of concept of how the changes in ilTemplate could look like to support the described behaviour. If some sub style is place in the sub styles folder (e.g. mySkin/mySubSkin/tpl.main.hmtl) this template is chosen over some template placed in the default location of ilias or the skin.

5 Contact

6 Funding

If you are interest in funding this feature, please add your name and institution to this list.

  • Universität Bern

7 Discussion

Kunkel, Matthias [mkunkel], 16 JAN 2018: Wouldn't it make sense also to allow a separate template for the root node of the repository? You might layout the start page of ILIAS with a different template compared to the categories below.

JourFixe, ILIAS [jourfixe], 22 JAN 2018 : We highly appreciate this suggestion and schedule it for 5.4. Matthias' idea of a 'root node sub-style' would be a separate feature request.

Schmid, Fabian [fschmid], 22 JAN 2018: In GlobalCaching this must be reflected as well, but this is not a big deal.

8 Implementation

E.g. by assigning the substyle contained in the attached style, the following text appears in the resp. Category:

SystemStyleForTestrail

Test Cases

Test cases completed at 18th Oct. 2018 by Amstutz, Timon [amstutz]

  • 24807 : Substyle-Template aufrufen

Approval

Approved at 18th OCT 2018 by Seiler, Yvonne [yvseiler].

Last edited: 18. Oct 2018, 10:35, Amstutz, Timon [amstutz]