[Zope-CMF] Identifying Content Type
Tres Seaver
tseaver@zope.com
Mon, 19 Nov 2001 07:36:50 -0500
Stephan G=F6ldi wrote:
> How can I identify of which type some content is?
> I would like to let CMF display a folder or a navigable folder in anoth=
er
> frame than a document. For this I want to identify the content type as
> "Folder", "Document", "Topic" etc.
>=20
> Is this possible?
The 'Type' method is exactly what you are looking for. You
might also use 'getIcon'. The 'index_html' and 'folder_contents'
method in the generic skins use these.
Tres.
--=20
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Tres Seaver tseaver@zope.com
Zope Corporation "Zope Dealers" http://www.zope.com