From: Alex M. <al...@se...> - 2007-07-17 22:14:02
|
Dear Denis, Great, I see what you're saying. However, my situation is a little bit different. I created a Plone site based on the profile Plone Site and added content through the Plone web interface. Now, when I try to "Export all steps", the tarball that I get only has the first-level content. If I add content through the web instead of using a profile, is there a equivalent way like using the .preserve file to tell the ZMI to export the 2nd, 3rd, etc level content also? Thanks a lot! At 12:06 PM 7/17/2007, Denis Mishunov wrote: >You have to have .preserve file in your structure folder also. That >file says what content to export. Once again - have a look at >CMFplone for example of such file. It's just the list of id's that >have to be exportable. Place such file to your 'structure' folder and >any subfolder you need. Just change the list of ID's in them >accordingly. > >On Jul 17, 2007, at 9:29 PM, Alex Man wrote: > >>Dear Denis, >> >>Thanks for you reply, your suggestion works! >> >>I have another question now. I know that through in the >>portal_setup tool, one can go to the Export tab and click on the >>button "Export all steps" to create a tarball of a GS profile. >> >>Now, the problem is that within the structure folder of that GS >>profile, it only has first-level content. For example, the >>structure folder may just contain >> >>acl_users/ >>front-page >>.objects >>.properties >> >>despite the fact that I have other content in the first-level >>folders specified in the .objects file, such as the news folder. In >>other words, I would like to see something like >> >>acl_users/ >>news/ >>front-page >>.objects >>.properties >> >>and within that news folder >> >>news-1 >>.objects >> >>Is there a way to tell the "Export all steps" action to recursively >>go through all the folders in my Plone site and create an accurate >>structure folder in the tarball? Thanks a lot for your help! >> >>At 11:47 PM 7/16/2007, Denis Mishunov wrote: >> >>>>Now, suppose that I want to put content in the news folder above >>>>(such as a news-1 Document). How do I go about specifying that in >>>>the GS profile? Is there a general approach for defining content in >>>>the 2nd, 3rd, etc levels? >>> >>>The same way you do it on the top-level objects. Put .objects to your >>>folder ('news' in your question) and define all the objects that >>>should be placed in that folder. For example 'news-, Document'. Place >>>file 'news-1' there also. For example on how to markup that file have >>>a look at 'front-page' in default profile from CMFPlone. >>> >>>-- >>>Best regards, >>>Denis Mishunov >>>PLONE Design-Skinning-Development >>> >>>mailto:den...@gm... >>>IRC: spliter(#plone) >>Regards, >> >>Alex > >-- >Best regards, >Denis Mishunov >PLONE Design-Skinning-Development > >mailto:den...@gm... >IRC: spliter(#plone) > Regards, Alex |