Re: creating a definition list with tal
Andreas Jung <[email protected]> Wed, 19 Apr 2006 16:44:01 +0200
| Newsgroups | gmane.comp.web.zope.page-templates |
|---|---|
| Message-ID | <EC14119C05F2F695EADB4471@[192.168.0.28]> |
--On 19. April 2006 08:39:37 -0600 gf <[email protected]> wrote: > {url2,summary2,alias2}, ...] > > I would like to create something like the following: > <dl> > <dt><a href="url1">alias1</a></dt> > <dd>summary1</dd> > <dt><a href="url2">alias2</a></dt> > <dd>summary2</dd> > ... > </dl> > > Below I have listed a couple of the variations of code that I have tried. > > I'd appreciate any help or advice you can give. > > Regards, > gyro > > === > > The following creates repeated definition lists: > > --- > > <dl tal:define="folder_info get_subfolder_info" > tal:repeat="finfo folder_info"> > <dt><a tal:attributes="href finfo/url" > tal:content="finfo/alias">the term</a></dt> > <dd tal:content="finfo/summary">the definition</dd> > </dl> > Move the ral:repeat *inside* the DT tag. > --- > > If I include a 'span' to repeat only the dt and dd tagged elements, > the list is not formatted properly (the 'span' messes up the 'dd' > formatting). In this case tal:omit-tag is your friend...as documented. -aj _______________________________________________ ZPT mailing list [email protected] http://mail.zope.org/mailman/listinfo/zpt
signature.asc
(application/pgp-signature, 186 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (Darwin) iD8DBQFERky0CJIWIbr9KYwRAk8mAKDpt2bhpVxNoFvaMm7nSyM7p7wEOQCgiFk9 sFNjJ3AWZuaVnRaUaD4yJ7U= =/Q6K -----END PGP SIGNATURE-----