mirror of
https://github.com/gantry/gantry5.git
synced 2026-08-19 01:15:04 -05:00
All particles have now unique id: {{ id }}
This commit is contained in:
@@ -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'],
|
||||
|
||||
Reference in New Issue
Block a user