> -----Original Message----- > From: [EMAIL PROTECTED] [mailto:product-developers- > [EMAIL PROTECTED] On Behalf Of deesto > Sent: Thursday, April 17, 2008 8:40 AM > To: [email protected] > Subject: Re: [Product-Developers] finishing a product > > > > Jon Stahl wrote: > > > > Hedley Roos wrote: > >> To make the topic the default view only once it exists you can use an > >> old Zope trick: call the Topic object index_html. In fact, only the id > >> (aka Short Name) has to be index_html. The Title can be whatever you > >> want. > >> > >> Note that some people may frown on this approach :) > > > > Indeed. ;-) See > > > http://dev.plone.org/collective/browser/PressRoom/trunk/content/PressRoo m.py > > for an example of code that creates a Folder inside a folderish type, > > then creates a Topic set as the default page for the folder, using > > obj.setDefaultPage. > > > > Thanks Jon. This is a great idea. I'm trying to mimic your code, but I'm > getting hung up, as your object creation triggers the creation of > sub-folders, and it's in these folders that the default Topic object is > created (as you've explained). In my case, only one folder-ish object is > created. How would I adapt your example to this case (by adding a Topic > when the top-level folder-ish object is created, or maybe even automate the > creation of the object [and Topic] when the product is installed)?
I'm afraid I didn't write that code, so I don't really have the skill to spoon-feed you customization. Perhaps someone else with a bit more skill can chime in here. :jon _______________________________________________ Product-Developers mailing list [email protected] http://lists.plone.org/mailman/listinfo/product-developers
