Hi!
Please, is it possible to customise a XWiki.StyleSheetExtension object to
apply different properties to different actions in the same page?
For instance, I would like to use different #mainContentArea { margin-top:
; } values when viewing, or editing a page, i.e. Home.WebHome, or creating
new
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ígue
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 structur
"{{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 wrote:
> Thanks! So simple, so nice...
>
> Still, I'm not able to g
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 0
On Wed, Aug 26, 2015 at 1:37 PM, [IDIS Technical Secretariat] Ricardo
Rodríguez 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')
> #mainContentArea {
> marg
Hi Thomas, just tested it, and you're right. Strange, when first logging
into fabfarm, it was saying my user didn't even exist. Then I tried the
main portal, logged in fine. And now I can login through the fabfarm
subwiki.
Anyhow, thanks again! I'm going to have fun I think!
Andy
On Mon, Aug
So its not working for me.
I've made sure the external user has the XWiki.XWikiAllGroup role and
its still not working. The user does not get the necessary rights and I
get the "Error. You are not allowed to view this document or perform
this action" error message.
Also, that user is not adde
Thanks! Please, read below...
On Wed, Aug 26, 2015 at 2:45 PM, Thomas Mortagne
wrote:
> On Wed, Aug 26, 2015 at 1:37 PM, [IDIS Technical Secretariat] Ricardo
> Rodríguez wrote:
> > Thanks! But there is still something I doing the wrong way. If I
> introduce
> > the following lines in the XWiki.
Hi,
Sorry for the late reply, I've just moved house so been pretty busy.
But yes that update has made it much clearer for someone new to understand.
Thanks!!
--
View this message in context:
http://xwiki.475771.n2.nabble.com/Creating-a-new-page-creates-a-space-instead-tp7595617p7595770.html
10 matches
Mail list logo