Feature Wiki
Tabs
Templates for Sub Styles
Page Overview
[Hide]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.
![](./data/docu/mobs/mm_58365/PastedGraphic-1.png?il_wac_token=fc5e289ec82d33ec4c4ea7b48604092fd08a25d3&il_wac_ttl=5&il_wac_ts=1725753062)
5 Contact
- Author of the Request: Amstutz, Timon [amstutz]
- Maintainer: Amstutz, Timon [amstutz], Killing, Alexander [alex]
- Implementation of the feature is done by: Amstutz, Timon [amstutz]
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:
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]