tags:

views:

19

answers:

2

Hello, I'm developing a skin for Plone 3.x. The skin have a lot of differences from the default theme, and i would like to keep the default skin in administration mode. I read some solutions like this http://maurits.vanrees.org/weblog/archive/2008/01/switch-your-skin-based-on-the-url . But I cannot use subdomains in my web, so I cannot use these solutions.

I'm thinking that the solution would be something like that:

In my main_template.pt:
<tal condition:"true: Autenticated as admin">
''Put here the specifics css
</tal>

But I don't know the correct sintax in Plone

Thank you.

A: 

This doesn't answer your question directly, but you might want to take a look at "Editskin switcher".

Aputsiaq
A: 

Finally, I used this solution. The condition to detect if you are authenticated is tal:condition="not: here/portal_membership/isAnonymousUser". So, you can use a stylesheet only for visitors and other stylesheet for authenticated users. Something like that:

< style type="text/css" tal:content="string:@import url($portal_url/visitors.css);" media="all" tal:condition="here/portal_membership/isAnonymousUser" />

< style type="text/css" tal:content="string:@import url($portal_url/admin.css);" media="all" tal:condition="not: here/portal_membership/isAnonymousUser" />

Maybe this is not the optimal solution, but it works for me

Angel Aparicio