Just one page, or all.<div>If all then perhaps add it to the template.</div><div><br></div><div>If one page what I have done (based on original advice from PM) was to add the following to config.php</div><div><br></div><div>
<div>Markup('includefile', 'directives', '/\\(:includefile\\s+([-\\w.]+)\\s*:\\)/e', "Keep(implode('', file('/home/websitename/public_html/includefiles/$1')))");</div><div>
<br></div><div>In your wiki page try</div><div><br></div><div>(:includefile myfile.js:)</div><div><br></div><div>where myfile.js is in the directory includefiles</div><div><br></div><div><br></div><br><div class="gmail_quote">
On 14 February 2010 14:36, Tegan Dowling <span dir="ltr"><<a href="mailto:tmdowling@gmail.com">tmdowling@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
For a school's site, I'd like embed this widget code in a page:<br><br><script type="text/javascript" src="<a href="http://widgets1.renlearn.com/content/widgets/reading" target="_blank">http://widgets1.renlearn.com/content/widgets/reading</a> activity/readingactivitywidget.js"></script><script>if (READINGACTIVITYWIDGET) READINGACTIVITYWIDGET.renderWidget('<a href="http://widgets1.renlearn.com/" target="_blank">http://widgets1.renlearn.com/</a>', 'MCPSCX6');</script><noscript>Enable Javascript in your browser to view this content.</noscript><br>
<br>I do have html enabled on the site, and I added "script" and "noscript" to the list of html terms to enable -- in local\config.php I have:<br><br>include_once("$FarmD/cookbook/enablehtml.php");<br>
EnableHtml("a|select|option|form|input|iframe|img|small|object|param|embed|script|noscript");<br><br>Having done that at least results in hiding the lines above when I add them to a page, but it doesn't suffice to display the widget.<br>
<br>Can I add something else to the enablehtml stuff on config.php that will make this work? I don't know from javascript, so I don't know if part of doing this right might be to put some of the widget code in the header of the skin.tmpl file -- but if so, which part, and what goes on the page itself?<br>
<br>Thanks!<br><font color="#888888"><br>Tegan<br>
</font><br>_______________________________________________<br>
pmwiki-users mailing list<br>
<a href="mailto:pmwiki-users@pmichaud.com">pmwiki-users@pmichaud.com</a><br>
<a href="http://www.pmichaud.com/mailman/listinfo/pmwiki-users" target="_blank">http://www.pmichaud.com/mailman/listinfo/pmwiki-users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>____<br><a href="http://kiwiwiki.co.nz">http://kiwiwiki.co.nz</a><br>
</div>