Serkan, thank you.
I realize that I need to play with the javascript (dojo) if I need to change the rendering for the portlet but I was wondering if there's a way around this. I am able to successfuly edit desktop.vm. I am trying to avoid playing with javascript. I found a functionality in the portlet that enables me to untile the portlets, and I don't know if there's a property to make this the default behavior. For now, the desktop functionality is ok, but I will be looking for a different approach in my decorator to make the portlets rendered by a velocity template (ie, portlet-desktop.vm) and may be use a different java script framework for the desktop (for example have a look at http://www.dhtmlgoodies.com/packages/dhtml-suite-for-applications/demos/demo-window-theme-zune.html.

For now, all I need is to set the untile mode to default. Any body knows how to do this ?



Serkan Camurcuoglu wrote:
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]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to