David Sean Taylor wrote:
On Oct 5, 2008, at 9:43 PM, Mansour Al Akeel wrote:
Mansour Al Akeel wrote:
Hello all,
how do I check in the portlet decorator if the current theme is a
portal or desktop ?
On this page
http://portals.apache.org/tutorials/jetspeed-2-ant/02/desktop-theme.html,
there's brief explanation of the usage of
${jetspeedDesktop.getDesktopTheme()} however, I am not sure how to
check this from velocity.
For example, in my portlet decorator:
#if( desktop)
display this
#else
display something else
#end
thank you.
Ok, I think that's not going to work because the rendering the
portlets in the desktop is different that the portal. For example,
editing decorator.vm will change the portlet only under the portal
mode. In the desktop mode, these changes are not reflected. Now the
question is: How do I deign a template for a portlet in the desktop
mode? what files are involved ?
We have been designing two different decorator templates, one for
desktop, one for portal. I understand this may not be the greatest
solution, but this is the first time someone has wanted to support both
David, I think there's some misunderstanding here. I meant supporting
the desktop decorator through templates. As you know, you can create a
new decorator for the portlets under the postal mode through velocity
templates, but you can not do this for desktop. If you want to do this
for desktop then you need to change it in the javascript. What I was
trying to do is to create a different portlet decorator under desktop
mode using velocity. I know I can play a little with the CSS and some
properties, but not the generated html.
Any how, at this point my main concern is to make the portlet untiled by
default under the desktop mode. I don't know how. Is there an easy way ?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]