tiaxgame
VN1st you use code
<!--parser:xtscript-->
var $info = xt:include file="/xt/me-ola/*"
print <$info
/>
<!--/parser:xtscript-->
Copy code
Graham
VN1st You cannot "include" into a variable
You have to be able to xt include files that contain xtscript
so xt includes are parsed before or after xtscript
There was another reason to do with misuse or server loops but I cannot remember exactly what
<!--parser:xtscript-->
print <xt:include file="/xt/me-ola/*"/>
<!--/parser:xtscript-->
Copy code
VN1st
Why when I use this code
<!--parser:xtscript-->
var $info=<xt:include file="/xt/me-ola/*"/>
print $info
<!--/parser:xtscript-->
Copy code
it did not get the full contents of the file.
I know if I use this code it would be better
<!--parser:xtscript-->
var $info = call source $file=/xt/me-ola/file
print $info
<!--/parser:xtscript-->
Copy code
but I want it taken out one random file