you can create a desktop.vm for your desktop layout decorator, see for
example webapps/jetspeed/decorations/layout/tigris/desktop.vm . Here you
can arrange the page header/footer etc. but the portlets are rendered in
javascript dynamically by dojo..
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 ?
From what I found, javascript/jetspeed/widget/PotletWindow.js is the
file responsible for rendering the Window. However, I am a little
reluctant to play with the javascript to create a window portlet for
the desktop. Furthermore I am trying to create a desktop without the
tables, so I can move and place windows freely anywhere. I need an
advice about the best approach to do this, as the available docs and
tutorials don't touch this topic.
---------------------------------------------------------------------
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]