fmacias64
(Fmacias64)
April 4, 2018, 12:51am
1
Does anyone know if its possible to send paramaters to a rapido script via rules.xml
The idea would be to have the equivalent to
< include css:content="form" href="/@@rapido /app/blocks/rapidoscript?parameter=value" / >
Thank you !
ebrehault
(Eric Bréhault)
April 4, 2018, 6:40am
2
That's not possible, but you can pass parameters to the actual page querystring and read then in your Rapido formula.
espenmn
(Espen)
April 4, 2018, 9:04am
3
I made an ugly hack to do something similar yesterday.
(for collective.multitheme, to add custom colors).
If there is a better way to do this, please let me know:
<style id="customcss">
<tal:define
tal:define="color1 python: str(context.portal_registry['collective.multitheme.interfaces.ICollectiveMultiThemeSettings.color1']);
color2 python: str(context.portal_registry['collective.multitheme.interfaces.ICollectiveMultiThemeSettings.color2']);
color3 python: str(context.portal_registry['collective.multitheme.interfaces.ICollectiveMultiThemeSettings.color3'])">
option[value=custom-color1], .custom-color1 {color: #${color1} !important}
option[value=custom-color2], .custom-color2 {color: #${color2} !important}
option[value=custom-color3], .custom-color3 {color: #${color3} !important}
option[value=custom-background1], .custom-background1 {background-color: #${color1} !important}
option[value=custom-background2], .custom-background2 {background-color: #${color2} !important}
option[value=custom-background3], .custom-background3 {background-color: #${color3} !important}
</tal:define>
</style>
and
@Netroxen : you might want to check line line 28 in the rules file for the 'fullpage stuff'