<HTML>
<HEAD>
<TITLE>Re: [Plone-UI] Custom CSS for different portlet types?</TITLE>
</HEAD>
<BODY>
<FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:10.0px'>Right, maybe try this?<BR>
<BR>
<a href="http://www.atblabs.com/jquery.corners.html">http://www.atblabs.com/jquery.corners.html</a><BR>
<BR>
<BR>
<BR>
<BR>
On 2/26/09 1:22 AM, "Espen Moe-Nilssen" <espen@medialog.no> wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Verdana, Helvetica, Arial"><FONT SIZE="4"><SPAN STYLE='font-size:12.0px'>I dont have proper rounded corners on my subskins product <a href="http://plone.org/products/subskins-iii/releases/1.0%20beta">http://plone.org/products/subskins-iii/releases/1.0%20beta</a> , and people keep asking for it, so if anyone can be bothered to make some (gonna need it with jquery (?) as the background colors changes.<BR>
<BR>
= If someone can make a new file to put in the subskinsiii_portlets folder<BR>
<BR>
<BR>
<BR>
</SPAN></FONT><SPAN STYLE='font-size:10.0px'><BR>
Den 25. feb. 2009 kl. 21.58 skrev Veda Williams:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:10.0px'> Excellent!<BR>
<BR>
Since you’re working on the filesystem, you can find the syntax for the other portlets by going to yourbuildout/eggs/plone.app.portlets[some version number]/plone/app/portlets/portlets/configure.zcml. <BR>
<BR>
If you’re using omelette, you’d go to: yourbuildout/omelette/plone/app/portlets/portlets/configure.zcml.<BR>
<BR>
It’s always best to be sure that you’ve got the right code.<BR>
<BR>
Same goes for plone.app.layout --> it’s in yourbuildout/eggs/plone.app.layout[some version number]/plone/app/layout/ or via omelette it is: yourbuildout/omelette/plone/app/layout/<BR>
<BR>
I’d recommend grabbing the omelette egg if you possibly can — saves a lot of hunting and pecking, though really plain old symlinks will do the trick. <BR>
<BR>
- Veda<BR>
<BR>
<BR>
On 2/25/09 12:51 PM, "erik kulvinskas" <vaporboy@gmail.com> wrote:<BR>
<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:10.0px'>Veda, <BR>
<BR>
OK i used the ID of the Portlet and that seems to work. I do have a <BR>
question though on portlets. I skinned the News portlet no problem. I <BR>
have a news.pt file and in my configure.zcml i have the following <BR>
lines: <BR>
<BR>
<interface <BR>
interface=".interfaces.IThemeSpecific" <BR>
type="zope.publisher.interfaces.browser.IBrowserSkinType" <BR>
name="external" <BR>
/> <BR>
<BR>
<include package="plone.app.portlets" /> <BR>
<plone:portletRenderer portlet="plone.app.portlets.portlets.news.INewsPortlet" <BR>
template="templates/news.pt" <BR>
layer=".interfaces.IThemeSpecific" <BR>
/> <BR>
<BR>
<BR>
Do all of the portlets use the same syntax? In other words, can i copy <BR>
and paste the portletrenderer lines above and just rename iNewsPortlet <BR>
to IEventsPortlet (if i were doing the events portlet). If not, where <BR>
do i find the information i need to make sure i call the portlet <BR>
correctly in the configure.zcml? <BR>
<BR>
Thanks! <BR>
<BR>
-erik <BR>
<BR>
On Wed, Feb 25, 2009 at 12:49 PM, vedaw (via Nabble) <BR>
<ml-user+36195-1628119807@... <a href="http://n2.nabble.com/user/SendEmail.jtp?type=node&node=2386038&i=0"><http://n2.nabble.com/user/SendEmail.jtp?type=node&node=2386038&i=0></a> <a href="http://n2.nabble.com/user/SendEmail.jtp?type=node&node=2386038&i=0"><http://n2.nabble.com/user/SendEmail.jtp?type=node&amp;node=2386038&amp;i=0></a> > wrote: <BR>
<BR>
> Ok, I understand you now. Interesting solution, I'm accustomed to using <BR>
> sprites, but this is certainly an extra twist. <BR>
> <BR>
> Why does specificity in your stylesheets based on the ID of the portlet, not <BR>
> work? For example: <BR>
> <BR>
> .portletRSS .dialog .content, <BR>
> .portletRSS .dialog .t, <BR>
> .portletRSS .dialog .b, <BR>
> .portletRSS .dialog .b div { <BR>
> background:transparent url(dialog2-blue-800x1600.png) no-repeat top right; <BR>
> _background-image:url(dialog2-blue.gif); <BR>
> } <BR>
> <BR>
> .portlet-news .dialog .content, <BR>
> .portlet-news .dialog .t, <BR>
> .portlet-news .dialog .b, <BR>
> .portlet-news .dialog .b div { <BR>
> background:transparent url(different swappable PNG here or maybe <BR>
> coordinates of the first image where the area is a different color header); <BR>
> } <BR>
> <BR>
> Are you combining all of the different colored PNGs into a single image, or <BR>
> do you have more than one PNG? <BR>
> <BR>
> BTW, I don't understand your issue with transparency -- you are using a PNG, <BR>
> right? Either you can use PNG8 to get IE6 to behave, or there is also an <BR>
> add-on you can use to do it with javascript: <BR>
> <BR>
> <a href="http://plone.org/products/products-easyaspiie">http://plone.org/products/products-easyaspiie</a><BR>
> <BR>
> Glad to hear you're looking forward to my book (I assume you mean the <BR>
> skinning book?), but I should warn you that it won't dive into CSS tricks <BR>
> like you're asking here. I'll leave that for the CSS geeks in the world. :) <BR>
> <BR>
> It's going to be geared more towards a "get your hands dirty, here are the <BR>
> tools and theming gotchas to worry about" than anything. It's also more for <BR>
> beginners, so if you're already working on the filesystem comfortably, there <BR>
> may not be much the book does give you... <BR>
> <BR>
> Practical Plone, the other book, *does* have something for everyone, IMO. <BR>
> <BR>
> Cheers, <BR>
> <BR>
> - Veda <BR>
> <BR>
> <BR>
> <BR>
> On 2/25/09 11:02 AM, "erik kulvinskas" <vaporboy@...> wrote: <BR>
> <BR>
>> <BR>
>> All, thanks for your responses but i AM developing on the file system. I <BR>
>> have <BR>
>> change the portlet code because A, the method i am using for rounded <BR>
>> corners <BR>
>> is different from how Plone does things. B, the method i am using is much <BR>
>> simpler using divs instead of dl's, dt's, etc etc. <BR>
>> <BR>
>> Instead of using custom css for every portlet color, i figured it would be <BR>
>> easier to call the css and just switch out the single image i am using for <BR>
>> the rounded corners depending on the portlet i am in (news, rss, etc) . <BR>
>> You <BR>
>> can find the method i am using here: <BR>
>> <a href="http://www.schillmania.com/content/projects/even-more-rounded-corners/">http://www.schillmania.com/content/projects/even-more-rounded-corners/</a><BR>
>> <BR>
>> Oh, and implementing rounded corners WITH transparent curves is not a <BR>
>> trivial thing in the standard build-out of plone. i have a gradient <BR>
>> background and need rounded corners to look properly. So, many of the <BR>
>> methods that exist out there that have 'rounded corners' work ONLY if you <BR>
>> background is solid that the corner resides on. The above method is the <BR>
>> one <BR>
>> i found that works quite nicely <BR>
>> <BR>
>> Veda, thanks for the info on the links and tutorials, i have poured <BR>
>> through <BR>
>> those, i have about every plone/zope book out there (waiting for yours to <BR>
>> be <BR>
>> available) and i 'get' the file system development. <BR>
>> <BR>
>> Erik <BR>
>> <BR>
>> <BR>
>> <BR>
>> vedaw wrote: <BR>
>>> <BR>
>>> It sounds like you've started working through the ZMI to do skinning, <BR>
>>> which <BR>
>>> is an OK place to start until you get the concepts down. You will have <BR>
>>> trouble moving things around via the ZMI, at which point you should start <BR>
>>> looking at filesystem development. <BR>
>>> <BR>
>>> In the meantime... Rene is correct in saying that this can be done <BR>
>>> trivially <BR>
>>> using only CSS and the CSS hooks that Plone portlets give you by default. <BR>
>>> Make the changes to your ploneCustom.css, make sure that your portal_css <BR>
>>> is <BR>
>>> in debug mode ( <BR>
>>> <BR>
>>> <a href="http://plone.org/documentation/how-to/how-to-make-your-css-changes-take-effe">http://plone.org/documentation/how-to/how-to-make-your-css-changes-take-effe</a><BR>
>>> ct-instantly), and you should see the updates. <BR>
>>> <BR>
>>> There's no need for variables / calling of CSS, etc. Plone already knows <BR>
>>> about ploneCustom.css, so it should be pretty straightforward. <BR>
>>> <BR>
>>> I'm somewhat biased, but there's a great theming chapter in the new <BR>
>>> Practical Plone book if you need some step-by-step assistance: <BR>
>>> <BR>
>>> <BR>
>>> <a href="http://www.packtpub.com/practical-plone-3-beginners-guide-to-building-powerf">http://www.packtpub.com/practical-plone-3-beginners-guide-to-building-powerf</a><BR>
>>> ul-websites/ <BR>
>>> <BR>
>>> Cheers, <BR>
>>> <BR>
>>> - Veda <BR>
>>> <BR>
>>> <BR>
>>> On 2/25/09 7:55 AM, "erik kulvinskas" <vaporboy@...> wrote: <BR>
>>> <BR>
>>>> <BR>
>>>> I am trying to create a custom color header for each type of portlet <BR>
>>>> type <BR>
>>>> within my theme. I have created some custom css in my ploneCustom.css <BR>
>>>> (<theme>/skins/theme_styles) for my theme using a rounded corner <BR>
>>>> technique <BR>
>>>> and it looks great. What i would like to do, for example, is have the <BR>
>>>> news <BR>
>>>> portlets have a grey header and RSS portlets to have an orange header, <BR>
>>>> etc. <BR>
>>>> So for the news portlet, i have a custom news.pt file that i am loading <BR>
>>>> within my theme and i THINK i have to do the following: <BR>
>>>> <BR>
>>>> 1) set some sort of variable in my news.pt file such as 'portletColor <BR>
>>>> string:grey' <BR>
>>>> 2) separate out the rounded corners css into a separate css file <BR>
>>>> 3) call that css file within my news.pt and pass that variable to the <BR>
>>>> css <BR>
>>>> so <BR>
>>>> that the particular image it calls is the one that i have set as a <BR>
>>>> variable <BR>
>>>> in the news.pt file. <BR>
>>>> <BR>
>>>> So here are my questions: <BR>
>>>> <BR>
>>>> 1) am i thinking of this correctly? <BR>
>>>> 2) if so, what type of file do i save this ccs as? a .pt or .dtml <BR>
>>>> 3) where do i call this css from? browser/templates/blah.css.dtml(.pt) <BR>
>>>> ?? <BR>
>>>> 4) how do i pass the variable value from the news.pt to the css and then <BR>
>>>> have the css render that value when it gets called? <BR>
>>>> <BR>
>>>> I hope i have not been too confusing. <BR>
>>>> <BR>
>>>> thanks, <BR>
>>>> <BR>
>>>> -erik <BR>
>>> <BR>
>>> <BR>
>>> _______________________________________________ <BR>
>>> UI mailing list <BR>
>>> UI@... <BR>
>>> <a href="http://lists.plone.org/mailman/listinfo/ui">http://lists.plone.org/mailman/listinfo/ui</a><BR>
>>> <BR>
>>> <BR>
> <BR>
> _______________________________________________ <BR>
> UI mailing list <BR>
> UI@... <BR>
> <a href="http://lists.plone.org/mailman/listinfo/ui">http://lists.plone.org/mailman/listinfo/ui</a><BR>
> <BR>
> <BR>
> ________________________________ <BR>
> This email is a reply to your post @ <BR>
> <a href="http://n2.nabble.com/Custom-CSS-for-different-portlet-types--tp2384432p2385719.html">http://n2.nabble.com/Custom-CSS-for-different-portlet-types--tp2384432p2385719.html</a><BR>
> You can reply by email or by visting the link above. <BR>
> <BR>
> <BR>
<BR>
<BR>
<HR ALIGN=LEFT SIZE="3" WIDTH="300">View this message in context: Re: [Plone-UI] Custom CSS for different portlet types? <a href="http://n2.nabble.com/Custom-CSS-for-different-portlet-types--tp2384432p2386038.html"><http://n2.nabble.com/Custom-CSS-for-different-portlet-types--tp2384432p2386038.html></a> <BR>
Sent from the User Interface & Design mailing list archive <a href="http://n2.nabble.com/User-Interface---Design-f293357.html"><http://n2.nabble.com/User-Interface---Design-f293357.html></a> at Nabble.com.<BR>
<BR>
<BR>
<HR ALIGN=CENTER SIZE="3" WIDTH="95%"></SPAN></FONT><SPAN STYLE='font-size:10.0px'><FONT FACE="Monaco, Courier New">_______________________________________________<BR>
UI mailing list<BR>
UI@lists.plone.org<BR>
<a href="http://lists.plone.org/mailman/listinfo/ui">http://lists.plone.org/mailman/listinfo/ui</a><BR>
<BR>
</FONT></SPAN></BLOCKQUOTE><SPAN STYLE='font-size:10.0px'><FONT FACE="Monaco, Courier New"><BR>
<BR>
</FONT><FONT FACE="Verdana, Helvetica, Arial">_______________________________________________<BR>
UI mailing list<BR>
UI@lists.plone.org<BR>
<a href="http://lists.plone.org/mailman/listinfo/ui">http://lists.plone.org/mailman/listinfo/ui</a><BR>
<BR>
</FONT></SPAN></BLOCKQUOTE><SPAN STYLE='font-size:10.0px'><FONT FACE="Verdana, Helvetica, Arial"><BR>
<BR>
</FONT></SPAN></BLOCKQUOTE><SPAN STYLE='font-size:10.0px'><FONT FACE="Verdana, Helvetica, Arial"><BR>
</FONT></SPAN>
</BODY>
</HTML>