[Zope-CMF] Help: New install of CMF and lots of problems customizing index_html

John D. Heintz jheintz@pobox.com
26 Apr 2002 13:14:07 -0500


--=-BRtC+tUU9yEQQuHi2AEu
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Aha! Thanks!

Wow, the ZPT looks alot better.  I'm going to take this as a sign to
jump into ZPT.

John

On Fri, 2002-04-26 at 10:23, Tres Seaver wrote:
> On Fri, 2002-04-26 at 10:48, John D. Heintz wrote:
> > Anybody?
> >=20
> > This is a really big problem for me, and I'm sure others as well.
>=20
> John,
>=20
> Check the "Basic" skin in your 'portal_skins' tool;  you will see that
> it now includes the ZPT-based skin directories ahead of the DTML-based
> ones, which means that your 'local_html' is expected to be a template
> exporting two macros, 'header' and 'body'.  If you don't want to use the
> ZPT skins, you can just remove them from the path, and revert to pure
> DTML.
>=20
> >=20
> > John
> >=20
> > On Wed, 2002-04-24 at 14:47, John D. Heintz wrote:
> > > Hi all!
> > >=20
> > > I have just logged a bug in the tracker, but was hoping that someone =
on
> > > the list could help we figure this out.
> > >=20
> > > The short of my config is Linux 2.4, Zope 2.5.0, and CMF from CVS.
> > >=20
> > > The behavior I'm getting is a bunch of dead-ends from every direction=
 I
> > > know of to change the front page of my new portal.
> > >=20
> > > I am trying to:
> > > 1) add local_html to Portal Folder and getting:
> > > "'local_html' body goes here." in the center and left side.
> > > This appears to be coming from the index_html.pt but I can't figure o=
ut
> > > why.
> > > =20
> > > If I browse to /Portal/local_html I see the dtml output without the
> > > standard header and footer.
> > > =20
> > > 2) customize portal_skins/generic/index_html.dtml to
> > > custom/index_html.dtml and getting a KeyError.
> > > =20
> > > 3) Modify index_html.dtml file on filesystem to force some changes an=
d
> > > restart Zope. Modified beginning to include some extra <h1> tags like=
:
> > > <dtml-var standard_html_header>
> > > =20
> > > <dtml-if expr=3D"'local_html' in objectIds()">
> > > <!-- localattr -->
> > > <h1>Use local_html!!!!!</h1>
> > > <dtml-var local_html>
> > > <dtml-else>
> > > =20
> > > <h2><h1>Use built-in index_html!!!</h1> <dtml-var title_or_id></h2>
> > > =20
> > > =20
> > > I didn't see any of the headings in the generated html, but the new
> > > content is visible after restart by using ZMI to look at
> > > /Portal/portal_skins/generic/index_html=20
> > >=20
> > > The details can be found in the Tracker at:
> > > http://www.zope.org/Products/PTK/Tracker/504
> > >=20
> > > Thanks for any help,
> > > John Heintz
> > >=20
> > >=20
> > > _______________________________________________
> > > Zope-CMF maillist  -  Zope-CMF@zope.org
> > > http://lists.zope.org/mailman/listinfo/zope-cmf
> > >=20
> > > See http://www.zope.org/Products/PTK/Tracker for bug reports and feat=
ure requests
> > >=20
> > --=20
> --=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
>=20
>=20
>=20
> _______________________________________________
> Zope-CMF maillist  -  Zope-CMF@zope.org
> http://lists.zope.org/mailman/listinfo/zope-cmf
>=20
> See http://www.zope.org/Products/PTK/Tracker for bug reports and feature =
requests
>=20
--=20

--=-BRtC+tUU9yEQQuHi2AEu
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQA8yZjuQqedVYxQ18MRAgjSAJwPp4G/aU9GX6lzAPxbGwfNZlouTQCcDq19
saHbZs+Bb2TzKtAjszkcIaI=
=TDAq
-----END PGP SIGNATURE-----

--=-BRtC+tUU9yEQQuHi2AEu--