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(&#39;includefile&#39;, &#39;directives&#39;, &#39;/\\(:includefile\\s+([-\\w.]+)\\s*:\\)/e&#39;, &quot;Keep(implode(&#39;&#39;, file(&#39;/home/websitename/public_html/includefiles/$1&#39;)))&quot;);</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">&lt;<a href="mailto:tmdowling@gmail.com">tmdowling@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
For a school&#39;s site, I&#39;d like embed this widget code in a page:<br><br>&lt;script type=&quot;text/javascript&quot; src=&quot;<a href="http://widgets1.renlearn.com/content/widgets/reading" target="_blank">http://widgets1.renlearn.com/content/widgets/reading</a> activity/readingactivitywidget.js&quot;&gt;&lt;/script&gt;&lt;script&gt;if (READINGACTIVITYWIDGET) READINGACTIVITYWIDGET.renderWidget(&#39;<a href="http://widgets1.renlearn.com/" target="_blank">http://widgets1.renlearn.com/</a>&#39;, &#39;MCPSCX6&#39;);&lt;/script&gt;&lt;noscript&gt;Enable Javascript in your browser to view this content.&lt;/noscript&gt;<br>


<br>I do have html enabled on the site, and I added &quot;script&quot; and &quot;noscript&quot; to the list of html terms to enable -- in local\config.php I have:<br><br>include_once(&quot;$FarmD/cookbook/enablehtml.php&quot;);<br>


             EnableHtml(&quot;a|select|option|form|input|iframe|img|small|object|param|embed|script|noscript&quot;);<br><br>Having done that at least results in hiding the lines above when I add them to a page, but it doesn&#39;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&#39;t know from javascript, so I don&#39;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>