INCLUDES and LAYOUT

John Marshall <[email protected]> Wed, 21 Dec 2005 23:41:42 +0000
Newsgroups gmane.comp.apache.mod-layout
Message-ID <[email protected]>
Hi,

#1/
I have been having a problem getting the INCLUDES
and LAYOUT working together. There is a previous
mention of this on the list but without an answer.

I have:
-----
     AddOutputFilter             LAYOUT html htm txt
     AddOutputFilter             LAYOUT;INCLUDES shtml
     LayoutComment               On
     LayoutFooter                /old/footer.html
     LayoutHeader                /old/header.html
-----

Can anyone provide some help?


#2/
Also, can anyone explain why the following configuration
produces different output?
------
     AddOutputFilter             LAYOUT html htm txt
     AddOutputFilter             tracea;LAYOUT;traceb;INCLUDES;tracec shtml
     LayoutComment               On
     LayoutFooter                /old/footer.html
     LayoutHeader                /old/header.html
------

The trace[abc] are external filters. The above config
prevents mod_layout from producing multiple footer.html
instances from showing in the output (which is what the
config in #1 shows)


#3/
Also, is the proposed "fix" by Elliot Kendall
good?
-----
--- mod_layout-4.0.2a/mod_layout.c	2004-07-26 12:36:52.000000000 -0400
+++ mod_layout-4.0.2a/mod_layout.c.new	2004-07-26 12:38:10.000000000 -0400
@@ -540,7 +540,7 @@
  }

  static void layout_register_hooks(apr_pool_t *p) {
-	ap_register_output_filter("LAYOUT", layout_filter, NULL, AP_FTYPE_CONTENT_SET);
+	ap_register_output_filter("LAYOUT", layout_filter, NULL, AP_FTYPE_RESOURCE);
  }
-----

Thanks,
John