diff --git a/AGENTS.md b/AGENTS.md
index a113ae7..07cb5c3 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -232,6 +232,10 @@ tests/ PHPUnit; PlenarioTestTrait erzeugt Testdaten, Fixtures
Teilnehmende wählen Sterne (Radios in DOM-Reihenfolge 1..n, Füllung per CSS `:has()`), der State enthält `results.stars`;
`Results.stars` in `plenario.js` zeigt den Durchschnitt als teilweise gefüllte Sterne und die Verteilung als Balken 5 → 1.
Text-Ausgabe (Auswertung, PDF) über `Slide::ratingText()` (`★★★★☆`), barrierearm über `element/rating`.
+- **Skala-Teile in der Präsentation** (Settings `show_average` / `show_distribution`, Standard an): blenden Durchschnitt
+ bzw. Verteilung nur auf der Bühne (Presenter/Embed) aus; das JSON bleibt vollständig und trägt `results.showAverage` /
+ `showDistribution`, `Results.scaleLayout()` in `plenario.js` ordnet die Teile an (ohne Durchschnitt bleibt die Anzahl
+ sichtbar, ohne Verteilung wandern die Beschriftungen zum Durchschnitt). Auswertung und PDF zeigen immer alles.
- **Antwort nachträglich bearbeiten** (gegen Tippfehler, `VoteService::hasEditableText()`): Antwort einer offenen Frage
(darf nicht leer werden) bzw. Kommentar einer Skala (ändern, ergänzen, leeren; die Bewertung bleibt unveränderlich),
nur solange die Abstimmung offen ist. `participate:edit` → `VoteService::editText()`, gleiche Vorbedingungen wie
diff --git a/src/Model/Entity/Slide.php b/src/Model/Entity/Slide.php
index 608860d..af5acbf 100644
--- a/src/Model/Entity/Slide.php
+++ b/src/Model/Entity/Slide.php
@@ -95,10 +95,13 @@ class Slide extends Entity
// comment_ratings: show the rating next to each comment in the presentation
// (time per comment depends on its length, see Comments.delay() in plenario.js)
// style: numbers or stars (SCALE_*), stars always start at scale_min = 1
+ // show_average / show_distribution: parts of the result shown in the presentation (presenter/embed);
+ // the evaluation in the admin area and the PDF export always contain both
self::TYPE_SCALE => [
'style' => self::SCALE_NUMBERS,
'scale_min' => 1, 'scale_max' => 5, 'min_label' => '', 'max_label' => '', 'private' => false,
'comments' => false, 'comment_ratings' => false,
+ 'show_average' => true, 'show_distribution' => true,
],
self::TYPE_CONTENT => [],
// time_limit in seconds, 0 = no limit (presenter ends the quiz)
diff --git a/src/Model/Table/SlidesTable.php b/src/Model/Table/SlidesTable.php
index 55bd79a..cdef321 100644
--- a/src/Model/Table/SlidesTable.php
+++ b/src/Model/Table/SlidesTable.php
@@ -162,6 +162,8 @@ class SlidesTable extends Table
$settings['private'] = filter_var($input['private'] ?? false, FILTER_VALIDATE_BOOLEAN);
$settings['comments'] = filter_var($input['comments'] ?? false, FILTER_VALIDATE_BOOLEAN);
$settings['comment_ratings'] = filter_var($input['comment_ratings'] ?? false, FILTER_VALIDATE_BOOLEAN);
+ $settings['show_average'] = filter_var($input['show_average'] ?? true, FILTER_VALIDATE_BOOLEAN);
+ $settings['show_distribution'] = filter_var($input['show_distribution'] ?? true, FILTER_VALIDATE_BOOLEAN);
break;
case Slide::TYPE_QUIZ:
$limit = (int)($input['time_limit'] ?? $settings['time_limit']);
diff --git a/src/Service/ResultsService.php b/src/Service/ResultsService.php
index f42a66a..fc0311b 100644
--- a/src/Service/ResultsService.php
+++ b/src/Service/ResultsService.php
@@ -21,6 +21,8 @@ use Cake\ORM\Locator\LocatorAwareTrait;
* 'min', 'max', 'minLabel', 'maxLabel', 'private' (bool), 'stars' (bool: star rating, min = 1);
* 'comments' => [['id', 'text', 'value' (int|null)]] oldest first (only with the comment field, else [];
* 'value' is null unless the setting comment_ratings is on;
+ * 'showAverage', 'showDistribution' (bool): parts shown in the presentation (settings
+ * show_average/show_distribution, the data is always complete);
* presentation only: participants never get results of scale slides, see PollStateService);
* open/scale with 'private' (anonymous/internal feedback): contents are included for the
* presenter/embed, which start with the results hidden and may show them on demand;
@@ -335,6 +337,8 @@ class ResultsService
return $this->scaleResults($slide) + [
'private' => $slide->isPrivate(),
'comments' => $comments,
+ 'showAverage' => (bool)$slide->setting('show_average'),
+ 'showDistribution' => (bool)$slide->setting('show_distribution'),
];
}
diff --git a/templates/Slides/form.php b/templates/Slides/form.php
index aa28c1f..86507ba 100644
--- a/templates/Slides/form.php
+++ b/templates/Slides/form.php
@@ -180,6 +180,20 @@ $optionsError = $slide->getError('options_text');
'placeholder' => __('z. B. sehr'), 'value' => $settings['max_label'],
]) ?>
+