Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Zope: CMF
[dev] more add menu changes
 

Index | Next | Previous | View Flat


y.2008 at wcm-solutions

Aug 7, 2008, 3:26 AM


Views: 1479
Permalink
[dev] more add menu changes

Hi!


We now have to support two ways to add content:


1.) oldstyle (no add view specified)
------------------------------------

The addable types are listed in folder_factories. After specifying type
and ID the object is added. constructContent redirects to the immediate
view.


2.) newstyle (add view is specified)
------------------------------------

The addable types are listed as actions. These actions should show up in
a menu. The add action points to a type specific add form. After
completion of the form the object is added. The add form redirects to
the immediate view.

Some parts are still missing:

- add a traverser that allows to use pretty URLs and better portal type
handling for add views (not part of this proposal)

- don't show newstyle types in folder_factories

- show add actions in the CMFDefault skin


Proposal 1: allowedContentTypes
-------------------------------

This PortalFolder method is used by folder_factories and by
folder_contents to decide if the 'New...' button is added. I propose to
add a new skip_add_views argument to allowedContentTypes. If true,
newstyle types are skipped.


Proposal 2: main_template
-------------------------

CMFDefault menus are implemented in main_template. I propose to add a
new section for 'folder/add' actions.


If there are no objections I'll make these changes on trunk.


Cheers,

Yuppie


_______________________________________________
Zope-CMF maillist - Zope-CMF[at]lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf

See http://collector.zope.org/CMF for bug reports and feature requests

Subject User Time
[dev] more add menu changes y.2008 at wcm-solutions Aug 7, 2008, 3:26 AM
    Re: [dev] more add menu changes jens at dataflake Aug 7, 2008, 4:23 AM
    Re: [dev] more add menu changes optilude at gmx Aug 7, 2008, 9:09 AM
        Re: [dev] more add menu changes y.2008 at wcm-solutions Aug 7, 2008, 10:04 AM
            Re: [dev] more add menu changes optilude at gmx Aug 7, 2008, 10:21 AM
                Re: [dev] more add menu changes charlie at begeistert Aug 7, 2008, 2:09 PM
    Re: [dev] more add menu changes optilude at gmx Aug 7, 2008, 4:46 PM
    Re: [dev] more add menu changes charlie at begeistert Sep 11, 2008, 7:22 AM
    Re: [dev] more add menu changes y.2008 at wcm-solutions Sep 12, 2008, 1:56 AM
        Re: [dev] more add menu changes charlie at begeistert Sep 12, 2008, 4:32 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.