Feature Wiki
Tabs
Change Style of Test
Page Overview
[Hide]1 Initial Problem
- I cannot apply the Content-Style I defined in the Administration to a test.
- I cannot change between stlyes.
2 Conceptual Summary
I would like to be able to apply a style to a test very much in the fashion I can do it for glossaries and wikis and learning modules.
3 User Interface Modifications
3.1 List of Affected Views
- The editing part does exist in Administration > Layout > Contentstyles > TITLE OF STYLE > Tab "Style Classes" > Subtab "Question" and does not need to be changed.
- The selection part does not exist in the test and should be exactly done as in the glossary. It should be a new sub-tab "Style" of the Settings-tab in the Test.
3.2 User Interface Details
UI Element = Form
- Headline = Test Style
- Drop Down for selecting one of the styles as defined in Content-Styles in Administration = Current Style
- Labels in Drop Down come from Content-Styles in Administration
![](./data/docu/mobs/mm_50696/Style.png?il_wac_token=77e17d7a33c033eb50adc62bde9d8a2b5813a3f0&il_wac_ttl=5&il_wac_ts=1725755703)
3.3 New User Interface Concepts
This is an all-standard Form. Please reuse from other stlye-setting components like glossary etc.
4 Technical Information
{The maintainer has to provide necessary technical information, e.g. dependencies on other ILIAS components, necessary modifications in general services/architecture, potential security or performance issues.}
5 Contact
- Author of the Request: Tödt, Alexandra [atoedt]
- Maintainer: Heyser, Björn [bheyser]
- Implementation of the feature is done by: {The maintainer must add the name of the implementing developer.}
6 Funding
If you are interest in funding this feature, please add your name and institution to this list.
- ...
7 Discussion
Kunkel, Matthias [mkunkel], Dec 02, 2016: A similar request has already been made by Yvonne Seiler in 2014, see below. I have deleted that page so this page is the one and only for this request - which I fully support!
Yvonne Seiler wrote:
There is a need for different styles in tests. Each test can have the standard content style of the system or you can create your own style. F.e. like in learning modules (Settings > Layout).
![](./data/docu/mobs/mm_39757/Bildschirmfoto 2014-07-22 um 16.38.58.png?il_wac_token=77e17d7a33c033eb50adc62bde9d8a2b5813a3f0&il_wac_ttl=5&il_wac_ts=1725755703)
Heyser, Björn [bheyser], 16 Aug 2017: As I needed to answer the question why this feature seems to be supported partly but not in total, i can strongly agree with a full support for this feature. There is indeed a serious need for its functionality.
As a note for myself, i leave a just found code line from my components main command execution method, that should explain the confusing behaviour of the test layout to consider the styles partly.
1 | if(method_exists($this->object, "getTestStyleLocation")) $this->tpl->addCss($this->object->getTestStyleLocation("output"), "screen"); |
GIT Rev 6ec1f4350480d56281f1efe4b1a47d5e16746f04
(investigations on this later, i just needed to document for the moment)
8 Implementation
{The maintainer has to give a description of the final implementation and add screenshots if possible.}
Test Cases
Test cases completed at {date} by {user}
- {Test case number linked to Testrail} : {test case title}
Approval
Approved at {date} by {user}.
Last edited: 17. Aug 2017, 09:29, Heyser, Björn [bheyser]