[Zope-CMF] Adding new portal doc to memberfolder when new member joins
Norman Khine
norman@khine.net
Mon, 20 Aug 2001 12:25:48 +0100
Hi Gitte,
I am not sure if you ware succesfull in implementing this, but here is my
hack, which seems to work;^)
In the CMFDefault/MembershipTool.py, you can add the following:
default_member_profile = '''Default profile page for %s
This is the default summary page created for you when
you joined this community
Please use this page to give an overview of your company
by just selecting the "Edit" in the Tool Box on the left.
'''
....
# Create Member's profile page.
# default_member_content ought to be configurable per
# instance of MembershipTool.
Document.addDocument( f
, 'profile_html'
, member_id+"'s Profile"
, member_id+"'s Profile Page"
, "structured-text"
, (default_member_profile % id)
)
f.profile_html._setPortalTypeName( 'Document' )
# Overcome an apparent catalog bug.
f.profile_html.reindexObject()
You must restart the server for this to take effect, now if you add a new
member, it will create a profile_html page in the member's folder.
Norman