[z3-five] Defining default view with Plone

Sébastien VINOT sebastien.vinot at logisphere.fr
Thu Aug 24 20:49:09 CEST 2006


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
>   

Well,

I thought it was possible to describe it using the ZCML file : that was 
an error

Thanks for the information

Sebastien



More information about the z3-five mailing list