I grabbed the latest CMFContentPanels 0.71 from CVS and it looks
like you have been trying to find another interface. To tell you the
truth, I liked the previous way of selecting a viewlet. It was a very
straightforward user interface, and now it seems as there are too
many extra screens the user has to navigate through. Maybe I'm
not following what you are trying to do, but for what it's worth,
here is my suggestion:
When the user clicks on the "Add new panel" link, the popup
window appears. At the top is a list of all global portlets (that have
no relation to a particular folder). If you select one of these
portlets, the popup window is immediately closed, and the new
panel appears with the portlet you just selected.
Below the global portlet dropdown list are all of the current folders
and objects.
If it is a folder, then the only available viewlets in the dropdown
list are:
Folder Listing
Recent Changes
Default Viewlet (I guess this would just display the title and
description of the folder?)
Other viewlets can be listed here if the item is a special folderish
content type
If it is an object, then the dropdown list would display the viewlet
appropriate for the given object.
Webpage -> Body
Zwiki -> Zwiki viewlet
Topic -> Topic listing viewlet
PayPal Item -> PayPal item viewlet
Image -> Image viewlet
Etc..
In the case of a 1-to-1 correlation between object and viewlet,
perhaps no dropdown is necessary. Simply have a button or link
that says "Add panel".
So the dropdown would only be displayed when there are more
than one choice for a given item, as in a folder where you must
decide whether to show a listing of the items in the folder, or only
the most recent items added to the folder.
In this way, it's very easy for the user to add new panels because
the choices are limited to what makes sense for the given folder/
object.