Blog‎ > ‎

OpenACS: Patch to edit-this-page to allow templating code

posted Dec 23, 2008, 10:16 PM by Jade Rubick
Index: edit-this-page/templates/article-index.tcl
===================================================================
RCS file: /var/cvs/ibr/packages/edit-this-page/templates/article-index.tcl,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -r1.1.1.1 -r1.2
--- edit-this-page/templates/article-index.tcl  6 May 2004 23:59:35 -0000      1.1.1.1
+++ edit-this-page/templates/article-index.tcl  8 Apr 2004 18:46:24 -0000      1.2
@@ -20,3 +20,9 @@

etp::get_page_attributes
etp::get_content_items
+
+# customization as per
+# http://www.thecodemill.biz/publications/blog/one-entry?entry_id=9879
+# to allow includes, etc.
+eval [template::adp_compile -string $pa(content)]
+set pa(content) ${__adp_output}
Comments