Skip to content.

Etria Lists

 

[quills-dev] Fwd: [Plone-Users] how to change the default view template for one object ?

Justizin justizin at siggraph.org
Fri Nov 10 01:56:16 UTC 2006


Michael:

  The plan for Quills 2.0 is to allow any content as weblog entries,
which would allow the use of RichDocument itself, and also facilitate
the creation of custom weblog entry types or behaviours.

For Quills 1.5, we're mostly just trying to make it non-broken for
many versions of Plone and have nice, clean migration code.  You can,
however, always override the view template for all entries.

On 11/8/06, Michael Reitsma <mreitsma at gmail.com> wrote:
> Hi Quillers,
>
> Can someone from the Quills dev group say if option number 1 is easy to be
> done and perhaps even in the 1.5 code-stream ?
> The choice i am referring to is the sitewide_planet template.
>
> rgrds Mike
>
> ---------- Forwarded message ----------
> From: Andrew Burkhalter <andrewburkhalter at gmail.com>
> Date: Nov 8, 2006 8:44 AM
> Subject: Re: [Plone-Users] how to change the default view template for one
> object ?
> To: Michael Reitsma <mreitsma at gmail.com>
>
> The Plone way to do this is via the "display" menu, which is a very
> friendly UI.  This appears for types of content that can potentially
> have a few different templates that you set on an object by object
> basis.  If you go to the portal_types tool within the ZMI, you can see
> a few of the types have an additional field called "Available view
> methods".  This appears for types that implement the
> ISelectableBrowserDefault interface found in CMFDynamicViewFTI.
>
> You can find plenty of background on that here:
> http://plone.org/documentation/tutorial/richdocument/dynamic-views
>
> Unfortunately for your case, this isn't supported out of the box by
> the Weblog type for Quills.  Thus you have two options:
>
> 1) If your use case is common enough, you could take your case to
> either the Plone blogging or the quills-dev list
> 2) Subclass the weblog type in your own product and bake this in
>
> Starting with #1 is probably your easiest first step forward.
>
> Andrew
>
>
>
> On 11/7/06, Michael Reitsma < mreitsma at gmail.com> wrote:
> > Hi,
> >
> > I know that by changing the (Default) field value  in the portal
> types/Aliases for the product you want, you can specify another view
> template here. This will then be used when an instance of this product is
> asked to render itself.
> > So if i wanted to change that Quills uses a sitewide template for every
> default view action on every Quills instance this would be the place to do
> it.
> > But i only want this to happen for one instance ! All the others should
> still use the normal view template.
> > Where do i specify this for this one instance?
> >
> > Plone 2.1.3 on WinXp. Quills used here is 1.5RC3 (but i think this is a
> Plone/Zope question not really Quills related)
> >
> > --
> > met vriendelijke groeten / with kind regards
> >
> > Michael Reitsma
> >
> -------------------------------------------------------------------------
> > Using Tomcat but need to do more? Need to support web services, security?
> > Get stuff done quickly with pre-integrated technology to make your job
> easier
> > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> >
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> >
> > _______________________________________________
> > Plone-Users mailing list
> > Plone-Users at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/plone-users
>
> >
> >
> >
>
>
> --
> met vriendelijke groeten / with kind regards
>
> Michael Reitsma
> _______________________________________________
> quills-dev mailing list
> quills-dev at lists.etria.com
> http://lists.etria.com/cgi-bin/mailman/listinfo/quills-dev
>
>
>


-- 
Justizin, Independent Interactivity Architect
ACM SIGGRAPH SysMgr, Reporter
http://www.siggraph.org/


More information about the quills-dev mailing list