All particles have now unique id: {{ id }}

This commit is contained in:
Matias Griese
2015-10-27 11:16:59 +02:00
parent b8b73368fc
commit aa814fd26f
4 changed files with 4 additions and 0 deletions
+1
View File
@@ -19,6 +19,7 @@
- Date Particle: Added commonly used option `October 22, 2015`
- Layouts: Add support for customizing section ids (was bound to title before)
- Prefixed Admin CSS file to appear more specific and possibly avoid potential conflicts (g-admin.css) (#)
- All particles have now unique id: `{{ id }}`
3. [](#bugfix)
- Fixed the config files lookup using relative instead of absolute paths
- Fixed issue in admin where overrides for Enabled toggle wouldn't be showing checked, causing the value to reset to Base Outline
@@ -1,4 +1,5 @@
{% try %}
{% set id = segment.id %}
{% if noConfig %}
{% set enabled = true %}
{% set particle = segment.attributes %}
@@ -78,6 +78,7 @@ $context = [
'noConfig' => true,
'inContent' => true,
'segment' => [
'id' => 'main-particle',
'type' => $data['type'],
'classes' => $params->get('pageclass_sfx'),
'subtype' => $data['particle'],
@@ -31,6 +31,7 @@ $context = array(
'gantry' => $gantry,
'inContent' => true,
'segment' => array(
'id' => "module-{$data['particle']}-{$module->id}",
'type' => $data['type'],
'subtype' => $data['particle'],
'attributes' => $data['options']['particle'],