The Toolkit for Online Communities
18917 Community Members, 1 member online, 1650 visitors today
Log In Register
OpenACS Home : Forums : OpenACS Development : Separating default-master and blank-master : One Message

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

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"
<multiple name="header_links">
  <link rel="@header_links.rel@" type="@header_links.type@" href="@header_links.href@" media="@header_links.media@">
<body<multiple name=attribute> @attribute.key@="@attribute.value@"</multiple>>



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@" />

<hr />

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