Hey!
I am using Gantry5 with atom headroom.js and particle “one page menu”. And i am trying to have different “one page menus” on different modular pages.
Here I want to grab ID from headroom.yaml:
cssselector:
type: input.text
description: Enter the CSS Selector for the element that should get fixed/sticky, for example '#g-header'.
label: CSS Selector
placeholder: '#g-header'
and the type input to onepage-menu.html.twig:
<div id="--->{{ What to write? }}<---" class="g-onepage-menu{% if particle.css.class %} {{ particle.css.class|e }}{% endif %}" {% if particle.extra %}{{ attr_extra|raw }}{% endif %}>
I have tried {{ particle.cssselector }}}
Sources: https://www.inspiretheme.com/documentation/gantry5-particles/onepage-menu
https://www.inspiretheme.com/documentation/gantry5-particles/headroom-js
Thanks for all replies