[ic] include tag problem

Andy Mayer interchange-users@icdevgroup.org
Tue Jul 30 07:46:04 2002


Hi guys,

I have just started using the excellent Interchange software, and am
tailoring the Foundaton Demo (don't switch off!) to my requirements...

My problem is that I have some common code that I want to use in
flypage.html and results.html, but when I put the code into a separate
include file, Interchange doesn't parse the tags in the code, it just
displays it. I am using the following code to do the include:

[include templates/__THEME__/mediaicons]

and the contents of included file mediaicons is:

[if-item-field media =~ /Paperback/ ]
<img alt="[item-field media]" valign=center
src="__THEME_IMG_DIR__icon_book.gif" border=0>
[/if-item-field]

The above code works perfectly when pasted into results.html and
flypage.html, but when I use the include tag then the browser displays
the code without parsing any of the IC tags.

Does this ring any bells?

Any ideas, pointers, help, comments would be gratefully accepted by a
newbie.

Cheers,

Andy (aka acm)

PS. get yourselves over to #interchange at irc.ChildrenOfAcid.com !


-- 
work: www.andymayer.net
play: www.andymayer.com