Forum OpenACS Development: Re: Separating default-master and blank-master

Collapse
Posted by Lars Pind on
Hey, sorry I didn't make this clear.

I haven't committed anything, merely made the change locally for a client project, in fact. I posted to get input on whether this is something we want to include in OpenACS. Sorry that wasn't clear.

Yes, I've done this using standard master/slave stuff. If you specify default-master everything works as normal. Only default-master now has a <master src="blank-master"> at the top.

Here's blank-master.adp:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
      "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>@title@</title>
@header_stuff@
<multiple name="header_links">
  <link rel="@header_links.rel@" type="@header_links.type@" href="@header_links.href@" media="@header_links.media@">
</multiple>
</head>
<body<multiple name=attribute> @attribute.key@="@attribute.value@"</multiple>>

<slave>

@ds_link@
</body>
</html>

And here's default-master.adp:

<master src="blank-master">
  <property name="title">@title@</property>
  <property name="header_stuff">@header_stuff@</property>
  <property name="focus">@focus@</property>

<include src="login-status" />

<if @body_start_include@ not nil>
  <include src="@body_start_include@" />
</if>

<h1>@title@</h1>
@context_bar@
<hr />
<slave>

<hr />
<address><a href="mailto:@signatory@">@signatory@</a></address>