[Zope-CMF] Testing for CMF - need code
Gilles Lenfant
gilles@pilotsystems.net
Tue, 15 Oct 2002 15:49:48 +0200
----- Original Message -----
From: "BZ" <bz@bwanazulia.com>
To: <zope-cmf@zope.org>
Sent: Tuesday, October 15, 2002 3:08 PM
Subject: [Zope-CMF] Testing for CMF - need code
> Any quick hint (or code) that would test to see if the site is a CMF site?
>
> <dtml-if cmf-site>
> do this
> <dtml-else>
> do that?
> </dtml-if>
>
> BZ
didn't test but it should work...
<dtml-try>
<dtml-call portal_url>
<p>Welcome in that CMF site</p>
<dtml-except>
<p>Welcome in that non CMF site</p>
</dtml-try>
Hope that helped
Of course, if there's any object called portal_url in your zope site, it
won't work.
--Gilles