You can enable Velocity in StyleSheetExtension content (the Parse
content property).
The problem is that it means you need to disable caching as otherwise
the browser will stick with the first version it downloaded.
On Wed, Aug 26, 2015 at 10:32 AM, [IDIS Technical Secretariat] Ricardo
Rodríguez
Thanks! So simple, so nice...
Still, I'm not able to get it working yet... Here what I'm trying to get...
{{velocity}}
#if($context.action == 'view')
#mainContentArea {
margin-top: -35px;
padding: 0px 0px;
}
#end
{{/velocity}}
I didn't get this code read while within the Velocity IF
On Wed, Aug 26, 2015 at 1:37 PM, [IDIS Technical Secretariat] Ricardo
Rodríguez ricardo.rodrig...@idisantiago.es wrote:
Thanks! But there is still something I doing the wrong way. If I introduce
the following lines in the XWiki.StyleSheetExtension object code...
#if($context.action == 'view')
Thanks! But there is still something I doing the wrong way. If I introduce
the following lines in the XWiki.StyleSheetExtension object code...
#if($context.action == 'view')
#mainContentArea {
margin-top: -35px;
padding: 0px 0px;
}
#else
#mainContentArea {
margin-top: 100px;
padding: 0px
{{velocity}} is wiki syntax to indicate that you want to insert some
Velocity. When you enable parsing the whole content become Velocity
already.
On Wed, Aug 26, 2015 at 1:04 PM, [IDIS Technical Secretariat] Ricardo
Rodríguez ricardo.rodrig...@idisantiago.es wrote:
Thanks! So simple, so nice...
Thanks! Please, read below...
On Wed, Aug 26, 2015 at 2:45 PM, Thomas Mortagne thomas.morta...@xwiki.com
wrote:
On Wed, Aug 26, 2015 at 1:37 PM, [IDIS Technical Secretariat] Ricardo
Rodríguez ricardo.rodrig...@idisantiago.es wrote:
Thanks! But there is still something I doing the wrong way.