[z3-five] Defining default view with Plone

Rocky Burt rocky at serverzen.com
Thu Aug 24 18:24:23 CEST 2006


On Thu, 2006-24-08 at 18:19 +0200, Sébastien VINOT wrote:
> Hello,
> 
> I'd like to definie a new view for my interface which has to correspond 
> to the default view of my object.
> 
> I did this on my ZCML file :
> 
>   <browser:page
>       for="Products.test.interfaces.sqlBackup.ISqlBackup"
>       name="View"
>       template="skins/test/sqlBackup.pt"
>       permission="zope2.View" />
> 
> If I do "http....myObj/View" I get my customized view. But, "http .... 
> myObj" gives me the default Plone View : How can I change it ?


Hi Sébastien,

This isn't really a Five issue... more of a CMF/Archetypes issue.  In
any event, with an Archetypes based content type you normally override
default_view, immediate_view, and the 'view' action to point to whatever
the default view should be (in this case, /View).  CMF/AT will take care
of the rest (make sure you reinstall the product via quickinstaller
after you change this).

- Rocky

-- 
Rocky Burt
ServerZen Software -- http://www.serverzen.com
News About The Server (blog) -- http://www.serverzen.net

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: This is a digitally signed message part
Url : http://codespeak.net/pipermail/z3-five/attachments/20060824/e64b4fe3/attachment.pgp 


More information about the z3-five mailing list