Hi, I'm trying to create a split heading on all my pages. In plain HTML, it would look something like this <h1>Site Name<br /> <span class="tl">Tag line</span></h1> The purpose of doing this is that I want to control both the fonts and the spacing of the lines, via a CSS stylesheet (if I use a <h1><h2> or similar combination, the lines are too far apart). So I created a 'master' page template with the following macro: <h1 metal:define-macro="heading"> <span tal:content="template/sitename">Title</span><br /> <span tal:content="template/tagline" class="tl">Tagline</span> </h1> If I test this template, it looks exactly the way I want it. So I tried to use it in another template as follows: <h1 metal:use-macro="root/master/macros/heading">Title and Tagline</h1> Unfortunately, when I try to test it, I get this not very helpful message ... Site Error An error was encountered while publishing this resource. Undefined I've been using Zope for about a month so the traceback information still looks like gobbledygook to me. I tried the following variation: <h1 metal:use-macro="root/master/macros/heading">Title<br /> <span tal:content="root/master/tagline">Tagline</span></h1> but that still gives the same error. At this point, I don't know if I'm doing something wrong or if this is something that is not supported by the current implementation. Any suggestions or comments will be welcome. Joe
On Mon, Oct 07, 2002 at 11:04:22PM -0400, jmabbate wrote:
I'm trying to create a split heading on all my pages. In plain HTML, it would look something like this
<h1>Site Name<br /> <span class="tl">Tag line</span></h1>
The purpose of doing this is that I want to control both the fonts and the spacing of the lines, via a CSS stylesheet (if I use a <h1><h2> or similar combination, the lines are too far apart).
Try the simplest thing first. You can tweak the distance between lines using CSS, and the margin* attributes, e.g.: h1 { margin-after: 0; } F.
On Tue, Oct 08, 2002 at 02:07:20PM +0100, Felix Ulrich-Oltean wrote:
Try the simplest thing first. You can tweak the distance between lines using CSS, and the margin* attributes, e.g.:
h1 { margin-after: 0; }
oops, that should have read: h1 { margin-bottom: 0; }
On Mon, Oct 07, 2002 at 11:04:22PM -0400, jmabbate wrote:
Unfortunately, when I try to test it, I get this not very helpful message ...
Site Error
An error was encountered while publishing this resource.
Undefined
I've been using Zope for about a month so the traceback information still looks like gobbledygook to me.
You should always include the full traceback when you post to this list. It might not look like gobbledygook to us. :) That said, Felix's suggestion is better than hackish html. --PW Paul Winkler "Welcome to Muppet Labs, where the future is made - today!"
participants (4)
-
Felix Ulrich-Oltean -
Felix Ulrich-Oltean -
jmabbate -
Paul Winkler