Re: [xwiki-users] changing some layout details in a single page

2008-04-10 Thread Mike Oliver

This works great for a single page, so what about a space?

-- 
View this message in context: 
http://www.nabble.com/changing-some-layout-details-in-a-single-page-tp16040881p16612682.html
Sent from the XWiki- Users mailing list archive at Nabble.com.

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] changing some layout details in a single page

2008-04-10 Thread Sergiu Dumitriu
Mike Oliver wrote:
 This works great for a single page, so what about a space?
 

Just edit the space preferences.
-- 
Sergiu Dumitriu
http://purl.org/net/sergiu/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] changing some layout details in a single page

2008-04-10 Thread Mike Oliver



Sergiu Dumitriu-2 wrote:
 
 Just edit the space preferences.
 
Of course, I realized just a second or so AFTER hitting submit.

Ollie
-- 
View this message in context: 
http://www.nabble.com/changing-some-layout-details-in-a-single-page-tp16040881p16617836.html
Sent from the XWiki- Users mailing list archive at Nabble.com.

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] changing some layout details in a single page

2008-03-17 Thread goldring, richard
Hi,

Couldn't changing the skin/look and feel of a page be done from a menu pull
down/ selection to make that functionality more accessible to non-coders?

Regards,

Richard

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf
Of Sergiu Dumitriu
Sent: 15 March 2008 05:59
To: XWiki Users
Subject: Re: [xwiki-users] changing some layout details in a single page


[Ricardo Rodriguez] Your EPEC Network ICT Team wrote:
 Guillaume Lerouge wrote:
 What you can do is to append ?skin= at the end of your page name to 
 force it to use that given skin, for instance :

 mywiki.com/xwiki/bin/view/Main/WebHome?skin=albatross 
 http://mywiki.com/xwiki/bin/view/Main/WebHome?skin=albatross (or
toucan)

 Then you can add this code to your selected pages (it's not clean but 
 it will work) :

 #if(!$request.skin || $request.skin  $request.skin != 'myskin')

 #set($skin = '?skin=myskin')

 #set($url = $xwiki.getURL($doc.fullName))

 #set($pageurl = $url + $skin)

 $response.sendRedirect($pageurl)

 #end

A shorter code:

#if($!request.skin != myskin)
$response.sendRedirect($doc.getURL(view, skin=myskin)
#end

 
 Oh! How powerful is this stuff! The only problem is to know how to use 
 all the resources this framework provides us.
 
 Don't you think this must go to Code Snippets?
 
 Thank you so much,
 
 Ricardo


-- 
Sergiu Dumitriu
http://purl.org/net/sergiu/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users

Thales UK Ltd (Wells) DISCLAIMER: The information contained in this e-mail
is confidential. It may also be legally privileged. It is intended only for
the stated addressee(s) and access to it by any other person is
unauthorised. If you are not an addressee, you must not disclose, copy,
circulate or in any other way use or rely on the information contained in
this e-mail. Such unauthorised use may be unlawful. We may monitor all
e-mail communications through our networks. If you have received this e-mail
in error, please inform us immediately on +44 (0) 1749 672081 and delete it
and all copies from your system. We accept no responsibility for changes to
any e-mail which occur after it has been sent.  Attachments to this e-mail
may contain software viruses which could damage your system.  We therefore
recommend you virus-check all attachments before opening. A business of
Thales UK Ltd. Registered Office: 2 Dashwood Lang Road, The Bourne Business
Park, Addlestone, Weybridge, Surrey KT15 2NX Registered in England No.
868273
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] changing some layout details in a single page

2008-03-17 Thread Vincent Massol

On Mar 17, 2008, at 9:21 AM, goldring, richard wrote:

 Hi,

 Couldn't changing the skin/look and feel of a page be done from a  
 menu pull
 down/ selection to make that functionality more accessible to non- 
 coders?

It would be funny to check if specifying a default template in the  
document will help implement this use case.

See ViewAction.java line 95.

Of course we don't have any UI to specify a page's  template right now  
but that could be added I guess.

Thanks
-Vincent

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]  
 Behalf
 Of Sergiu Dumitriu
 Sent: 15 March 2008 05:59
 To: XWiki Users
 Subject: Re: [xwiki-users] changing some layout details in a single  
 page


 [Ricardo Rodriguez] Your EPEC Network ICT Team wrote:
 Guillaume Lerouge wrote:
 What you can do is to append ?skin= at the end of your page name to
 force it to use that given skin, for instance :

 mywiki.com/xwiki/bin/view/Main/WebHome?skin=albatross
 http://mywiki.com/xwiki/bin/view/Main/WebHome?skin=albatross (or
 toucan)

 Then you can add this code to your selected pages (it's not clean  
 but
 it will work) :

 #if(!$request.skin || $request.skin  $request.skin != 'myskin')

 #set($skin = '?skin=myskin')

 #set($url = $xwiki.getURL($doc.fullName))

 #set($pageurl = $url + $skin)

 $response.sendRedirect($pageurl)

 #end

 A shorter code:

 #if($!request.skin != myskin)
 $response.sendRedirect($doc.getURL(view, skin=myskin)
 #end


 Oh! How powerful is this stuff! The only problem is to know how  
 to use
 all the resources this framework provides us.

 Don't you think this must go to Code Snippets?

 Thank you so much,

 Ricardo


 -- 
 Sergiu Dumitriu
 http://purl.org/net/sergiu/
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users

 Thales UK Ltd (Wells) DISCLAIMER: The information contained in this  
 e-mail
 is confidential. It may also be legally privileged. It is intended  
 only for
 the stated addressee(s) and access to it by any other person is
 unauthorised. If you are not an addressee, you must not disclose,  
 copy,
 circulate or in any other way use or rely on the information  
 contained in
 this e-mail. Such unauthorised use may be unlawful. We may monitor all
 e-mail communications through our networks. If you have received  
 this e-mail
 in error, please inform us immediately on +44 (0) 1749 672081 and  
 delete it
 and all copies from your system. We accept no responsibility for  
 changes to
 any e-mail which occur after it has been sent.  Attachments to this  
 e-mail
 may contain software viruses which could damage your system.  We  
 therefore
 recommend you virus-check all attachments before opening. A business  
 of
 Thales UK Ltd. Registered Office: 2 Dashwood Lang Road, The Bourne  
 Business
 Park, Addlestone, Weybridge, Surrey KT15 2NX Registered in England No.
 868273
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] changing some layout details in a single page

2008-03-15 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Sergiu Dumitriu wrote:
 A shorter code:

 #if($!request.skin != myskin)
 $response.sendRedirect($doc.getURL(view, skin=myskin)
 #end

   
Much more elegant :-) Must this go to a code snippet entry? Thanks!

Cheers,

Ricardo

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] changing some layout details in a single page

2008-03-15 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team

[Ricardo Rodriguez] Your EPEC Network ICT Team wrote:

Sergiu Dumitriu wrote:
  

A shorter code:

#if($!request.skin != myskin)
$response.sendRedirect($doc.getURL(view, skin=myskin)
#end

  


Much more elegant :-) Must this go to a code snippet entry? Thanks!

Cheers,

Ricardo

  
Oops! Sorry, I've misread Guillaume's last message. Adding a snippet 
code entry...


Best,

--
Ricardo Rodríguez
Your EPEC Network ICT Team

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] changing some layout details in a single page

2008-03-15 Thread Sergiu Dumitriu
[Ricardo Rodriguez] Your EPEC Network ICT Team wrote:
 Sergiu Dumitriu wrote:
 A shorter code:

 #if($!request.skin != myskin)
 $response.sendRedirect($doc.getURL(view, skin=myskin)
 #end

   
 Much more elegant :-) Must this go to a code snippet entry? Thanks!
 

Yes, feel free to create it.
-- 
Sergiu Dumitriu
http://purl.org/net/sergiu/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] changing some layout details in a single page

2008-03-15 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Done!

http://code.xwiki.org/xwiki/bin/view/Snippets/ForceSkinSnippet

Thank you so much,

Ricardo

Sergiu Dumitriu wrote:
 Also, I forgot a closing )

 $response.sendRedirect($doc.getURL(view, skin=myskin))
   

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] changing some layout details in a single page

2008-03-14 Thread Guillaume Lerouge
Hi Ricardo,

 Hi all,

 Although this issue comes from some previous threads, please, allow me
 to reformulate it here.

 I do need to change some layout appearance details in some single pages.

 I more or less understand how CSS now allows to change most of the
 layout characteristics, and how, skins are the best vehicle to apply
 CSS, but I don't know how to apply a skin to a single page. I've tried
 by adding a skin document to a page, but this doesn't work. So:

 1. Is it possible to apply a skin to a page? How?
 2. Is there any simpler way of using some new/different CSS definitions
 on a per-page basis?


What you can do is to append ?skin= at the end of your page name to force it
to use that given skin, for instance :

mywiki.com/xwiki/bin/view/Main/WebHome?skin=albatross (or toucan)

Then you can add this code to your selected pages (it's not clean but it
will work) :

#if(!$request.skin || $request.skin  $request.skin != 'myskin')

#set($skin = '?skin=myskin')

#set($url = $xwiki.getURL($doc.fullName))

#set($pageurl = $url + $skin)

$response.sendRedirect($pageurl)
#end

Hope this helps,

Guillaume
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] changing some layout details in a single page

2008-03-14 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team

Guillaume Lerouge wrote:
What you can do is to append ?skin= at the end of your page name to 
force it to use that given skin, for instance :


mywiki.com/xwiki/bin/view/Main/WebHome?skin=albatross 
http://mywiki.com/xwiki/bin/view/Main/WebHome?skin=albatross (or toucan)


Then you can add this code to your selected pages (it's not clean but 
it will work) :


#if(!$request.skin || $request.skin  $request.skin != 'myskin')

#set($skin = '?skin=myskin')

#set($url = $xwiki.getURL($doc.fullName))

#set($pageurl = $url + $skin)

$response.sendRedirect($pageurl)

#end


Oh! How powerful is this stuff! The only problem is to know how to use 
all the resources this framework provides us.


Don't you think this must go to Code Snippets?

Thank you so much,

Ricardo

--
Ricardo Rodríguez
Your EPEC Network ICT Team

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] changing some layout details in a single page

2008-03-14 Thread Guillaume Lerouge
On 15/03/2008, [Ricardo Rodriguez] Your EPEC Network ICT Team 
[EMAIL PROTECTED] wrote:

  Guillaume Lerouge wrote:

  What you can do is to append ?skin= at the end of your page name to force
 it to use that given skin, for instance :

  mywiki.com/xwiki/bin/view/Main/WebHome?skin=albatross (or toucan)

  Then you can add this code to your selected pages (it's not clean but it
 will work) :

  #if(!$request.skin || $request.skin  $request.skin != 'myskin')

 #set($skin = '?skin=myskin')

 #set($url = $xwiki.getURL($doc.fullName))

 #set($pageurl = $url + $skin)

 $response.sendRedirect($pageurl)
  #end


 Oh! How powerful is this stuff! The only problem is to know how to use
 all the resources this framework provides us.

 Don't you think this must go to Code Snippets?


Sure, please feel free to add it ;-)

Thank you so much,

 Ricardo

 --
 Ricardo Rodríguez
 Your EPEC Network ICT Team


 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users




-- 
http://wikibc.blogspot.com/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] changing some layout details in a single page

2008-03-14 Thread Sergiu Dumitriu
[Ricardo Rodriguez] Your EPEC Network ICT Team wrote:
 Guillaume Lerouge wrote:
 What you can do is to append ?skin= at the end of your page name to 
 force it to use that given skin, for instance :

 mywiki.com/xwiki/bin/view/Main/WebHome?skin=albatross 
 http://mywiki.com/xwiki/bin/view/Main/WebHome?skin=albatross (or toucan)

 Then you can add this code to your selected pages (it's not clean but 
 it will work) :

 #if(!$request.skin || $request.skin  $request.skin != 'myskin')

 #set($skin = '?skin=myskin')

 #set($url = $xwiki.getURL($doc.fullName))

 #set($pageurl = $url + $skin)

 $response.sendRedirect($pageurl)

 #end

A shorter code:

#if($!request.skin != myskin)
$response.sendRedirect($doc.getURL(view, skin=myskin)
#end

 
 Oh! How powerful is this stuff! The only problem is to know how to use 
 all the resources this framework provides us.
 
 Don't you think this must go to Code Snippets?
 
 Thank you so much,
 
 Ricardo


-- 
Sergiu Dumitriu
http://purl.org/net/sergiu/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users