We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I would like to define different layouts for my Accordions CE and I can see in Plugin option a "Style" selector:
Can someone let me know how to define my own styles here? I can imagine in TS config, but how?
Thank you in advance for your help. Regards Joël
The text was updated successfully, but these errors were encountered:
Hello Joël,
Not using this extension, but from what I see there's no built-in support for adding new styles via configuration. As we see here:
https://github.com/RozbehSharahi/bootstrap_grids/blob/master/Configuration/FlexForm/flexform_accordion.xml#L21-L24
"None" is hardcoded, and that's the only possible value. There's no itemsProcFunc or whatever which would allow to add new items via configuration.
itemsProcFunc
But this is pure TCA, so you can easily add you own items the way you want:
EXT:site/Configuration/FlexForm/bootstrap_grids_accordion.xml
<items type="array"> <numIndex index="0" type="array"> <numIndex index="0">LLL:EXT:bootstrap_grids/Resources/Private/Language/locallang_db.xlf:grid.label.none</numIndex> <numIndex index="1"></numIndex> </numIndex> <numIndex index="1" type="array"> <numIndex index="0">My custom style 1 (or LLL:EXT: string or course)</numIndex> <numIndex index="1">STYLE_1</numIndex> </numIndex> <numIndex index="2" type="array"> <numIndex index="0">My custom style 2 (or LLL:EXT: string or course)</numIndex> <numIndex index="1">STYLE_2</numIndex> </numIndex> </items>
And then override the value of flexformDS you find in the default configuration file: https://github.com/RozbehSharahi/bootstrap_grids/blob/master/Configuration/TypoScript/pageTs/tsconfig.ts#L206 (again as part of the pageTS of your site extension) to point to that custom definition file you just created and you're done!
flexformDS
HTH
Sorry, something went wrong.
No branches or pull requests
I would like to define different layouts for my Accordions CE and I can see in Plugin option a "Style" selector:
Can someone let me know how to define my own styles here?
I can imagine in TS config, but how?
Thank you in advance for your help.
Regards
Joël
The text was updated successfully, but these errors were encountered: