Index: openacs-4/packages/acs-subsite/acs-subsite.info
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-subsite/acs-subsite.info,v
diff -u -r1.119 -r1.120
--- openacs-4/packages/acs-subsite/acs-subsite.info 7 Aug 2017 23:47:57 -0000 1.119
+++ openacs-4/packages/acs-subsite/acs-subsite.info 17 Dec 2017 18:01:07 -0000 1.120
@@ -9,7 +9,7 @@
t
t
-
+
OpenACS
Subsite
2017-08-06
@@ -18,7 +18,7 @@
GPL
3
-
+
Index: openacs-4/packages/acs-subsite/tcl/callback-procs.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-subsite/tcl/callback-procs.tcl,v
diff -u -r1.8 -r1.9
--- openacs-4/packages/acs-subsite/tcl/callback-procs.tcl 7 Aug 2017 23:47:58 -0000 1.8
+++ openacs-4/packages/acs-subsite/tcl/callback-procs.tcl 17 Dec 2017 18:01:07 -0000 1.9
@@ -11,10 +11,9 @@
} {
used to generate html fragments for display on the /pvt/home page.
- The html fragment should have an h2 header for sectioning.
+ The HTML fragment should have an h2 header for sectioning.
@param user_id - the user to display
-
@see callback::user::workspace::impl::acs-subsite
} -
@@ -36,17 +35,28 @@
ad_proc -callback subsite::get_extra_headers {
} {
- returns any further header stuff that needs to be added
+ @return any further header stuff that needs to be added
+ @see subsite::page_plugin
} -
ad_proc -callback subsite::header_onload {
} {
- returns any javascript function that needs to be loaded
+ @return any javascript function that needs to be loaded
the callback implementation should simply do:
return {your_function(params);}
+ @see subsite::page_plugin
} -
+ad_proc -callback subsite::page_plugin {
+} {
+ Execute pacakge-specfic code on every page. Callbacks of this type
+ typically call template::head::* functions to add application specific
+ code (CSS and JavaScript) to every page (e.g. like e.g. the cookie-consent-plugin).
+ This callback is a generalization of the callbacks "subsite::get_extra_headers"
+ and "subsite::header_onload".
+} -
+
# Local variables:
# mode: tcl
# tcl-indent-level: 4