Re: Templates and customization
Jeremy Bowers <[email protected]> Fri, 12 Mar 2004 14:20:40 -0500
| Newsgroups | gmane.comp.pythin.pyds.devel |
|---|---|
| Message-ID | <[email protected]> |
Georg Bauer wrote: > Ah, you are talking about the list of categories on the desktop. That > wasn't clear to me from your first post. Oops. > I assume you made the number of columns for the categories customizable > in the preferences? Actually, no I didn't, though it's easy enough to add. I made it a yes/no choice, either no columns or three columns. Partially this is because I'm something of an anti-preference bigot (preferences only when absolutely necessary), and partially because I didn't feel like experimenting with what Cheetah made of strings that should be numbers. (I still don't completely understand Cheetah's template language because I have not played with it much.) > I'd say change the template, create some code that does the tabular > layout (sounds like a macro that takes a list of checkboxes and does a > tabular layout - this could be reused in other cases) and use that in > the template. Sure, could be done with a nugget, but I think if it's > just some code to render checkboxes in tabular form, I don't think it's > worth to be put in a nugget, as I don't think anybody will ever change > that code later on. I'll work on that here sometime. I'm definately happier with it this way, even if it does cause a page expansion.