|
From: Chris W. <ch...@cw...> - 2001-10-12 12:27:46
|
* Reinier Post (rp...@wi...) [011012 06:18]: > Hello list, > > Still in my first steps with OpenInteract, I have installed it from CPA > After applying the patch to base_user posted here, I have been able to > administer users and read most of the system documentation. But > oi_docs/templates.html gives me an error message: it complains about > a character '&', which isn't actually in the source. > > Without prior experience with the Template Toolkit, I find it hard to > understand the cause of this error, but the message seems very misleading. This is a very tricky and misleading error. It will not appear if you just view the page as normal HTML. The line in the file you're getting an error on is: [% IF news.tmp_security_level >= security_level.write %] You see it reported back to you in the browser as: [% IF news.tmp_security_level >= security_level.write %] which is absolutely fine. The problem is that this page contains samples of TT code, which are in turn getting interpreted by TT. This points to a larger problem, so what I'll do is create a new tag for static pages that tells OI NOT to run this through TT but just to return the content. This is similar to how you can specify boxes to use on the page using <boxes>box1, box2</boxes>. This is pretty easy so it will be in the next release, any day now. In the meantime, just open the file directly in your browser rather than going through OpenInteract. Thanks! Chris -- Chris Winters (ch...@cw...) Building enterprise-capable snack solutions since 1988. |