[z3-five] Defining default view with Plone
Kapil Thangavelu
k_vertigo at objectrealms.net
Sat Aug 26 04:48:54 CEST 2006
for non at types, and perhaps at as well from zcml you also need to
configure the default view in addition to the view definition.
ie.
<browser:defaultView
for="Products.test.interfaces.sqlBackup.ISqlBackup"
name="View" />
-k
On Thu, 24 Aug 2006 14:49:09 -0400, Sébastien VINOT
<sebastien.vinot at logisphere.fr> wrote:
> Rocky Burt a écrit :
>> 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
>>
More information about the z3-five
mailing list