PDA

View Full Version : Portal question



TheBigOnion
6 May 2010, 11:57 AM
Hello all,
I have a couple of questions about the portal example.

1. How can I make the contents of a portlet a php page? I want each of my portlets to come from a separate php page and not from a javascript file.

2. How can I dynamically load portlets? So if I want to give the user a choice of loading or not portlets, how can I do it?

Thanks so much!

Michael

Ytorres
6 May 2010, 1:41 PM
Hi,

First of all, if you want some help, you should post into the help forum, not this one ;)

1) Each portlet is "just" a basic panel witch accept some items. You should use the autoLoad object for panel (http://www.extjs.com/deploy/dev/docs/?class=Ext.Panel) with url params to specify your php file

2) As a portlet is a basic panel, use the add() method of your main panel (or viewPort) to add dynamically a new portel according to user's choice.

Best,
Yannick