This project is read-only.

Injecting anything at a specific position

Example. put <script> tag at the page's header section:


<mdo:header position="page" key="unique-key">
  <script type="text/javascript" src="... some hosted script..." />
</mdo:header>
  • position attribute supports
    • page - include something in page header
    • form - include something at top of the <form> tag
    • module inclued something on the top of the current module (this replaces XsltDb <noajax> tag).
  • key - unique value to prevent multiple inclusion of the same content
Detailed documentation is coming soon...

Last edited Feb 3, 2011 at 4:42 PM by findy, version 2

Comments

trapias Jan 17, 2011 at 9:36 AM 
Anton, sounds great! Is there any check on inclusion? Say I want to include a same js file from two modules in one page: does mdo:header avoid duplicates?