* Dkkm Why can not I use this code
<xt:include file="/<xt:get_device_template>.js"/>
Copy code
2015-01-07 18:57 · (0)
* onedc * Dkkm Try this code.
<!--parser:xtscript-->
var $dumpvar = <xt:get_device_template /> 
if $dumpvar == mobile
assign $dumpvar = <xt:include file="/mobile.js" />
elseif $dumpvar == touch
assign $dumpvar = <xt:include file="/touch.js" /> 
elseif $dumpvar == web
assign $dumpvar = <xt:include file="/web.js" /> 
endif
print $dumpvar
<!--/parser:xtscript-->

Copy code
2015-01-07 20:31 (edited 2015-01-07 21:41 by onedc ) · (1)
* Dkkm * onedc Is there any other way without using XTS not.

Since I usually see: Timeout on XTS
2015-01-07 21:15 · (0)
* MHS_AN-99 * Dkkm create menu "reload" on page content ur site to minimize xtscript an error timeout or 'crash'. if u want use xtscript so big or multi xtscript on a page, cz xtscript need times to executed server.
2015-01-07 21:47 · (1)
* Graham You cannot put one xt:function inside another and the includes are parsed before any other xt:function
They have to be or you could not include pages with xt:functions on them
2015-01-08 00:17 (edited 2015-01-08 00:17 by Graham ) · (1)

Online: Guests: 1