custom edit template (repost)

2 messages Options
Embed this post
Permalink
Vijay Ramachandran () custom edit template (repost)
Reply Threaded More More options
Print post
Permalink
HHello. (sorry for the repost, the first post didn't appear)

How do I write a custom edit template for my archetypes type? I followed the recipes in "Professional Plone Development" to create a custom type, and define a custom view for it (by defining a view template and registering a browser view for this template in the browser/configure.zcml package). This works fine.

I now need to create a custom edit/create-new template. I read these articles:
http://plone.org/documentation/how-to/how-to-customise-view-or-edit-on-archetypes-content-items and
http://plone.org/documentation/how-to/how-to-customise-view-or-edit-on-archetypes-content-items
but either I'm doing something wrong, or they don't work as advertised - I only seem to get the default create/edit form which is a linear listing of the widgets for that type. I'm not sure if I'm creating the "mytype_edit.pt" template in the right location - its in the same directory as the edit template. Besides the above two links, I've also tried registering a view for the "edit" function via configure.zcml:

    <browser:page
        for="..interfaces.IMyType"
        name="edit"
        class=".mytype.MyTypeEdit"
        permission="cmf.ModifyPortalContent"
        />

I'm utterly stumped. This is on Plone 3.2.2 on Zope 2.10.7. Please help!

thanks,
Vijay



------------------------------------------------------------------------------

_______________________________________________
Plone-Users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/plone-users
barrypage () One PLone 2.5.5 site of two hangs - need help to trace problem please
Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)
I have moved my plone 2.5.5 site from one hosting environment to another. I did this by simply migrating the VMWare VM from one machine to another in a  different hosting environment, then switched DNS over.
The site has been running fairly happily for a few years in the old setup, and runs much faster in the new.
However, one of the two sites seems to hust 'hang' now, while the other (same instance) is running perfectly. No changes at plone/zope level, no changes to Apache. It's a fairly simple set up with Apache, a single zeo and cachefu as standard. Server is fedora 5.
Can anyone please help with some tips to debug this... or even to explain why this might happen?
 
Regards,
Barry Page
021 438 695

Information, news, discussions, polls and classifieds online at greenhithe.org.nz, albanynz.com and paremoremo.com.


------------------------------------------------------------------------------

_______________________________________________
Plone-Users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/plone-users