Waplocus
Graham Bt i av 3 xtgem site and each of them with thier parked domain, only six result is alwayz appear on search of the parked domain bt all sub url 4 site.xtgem.com all appear on search engine...
Waplocus
Waplocus I Hav 5 files all wit .txt ext e.g(A.txt, B.txt, C.txt e.t.c), all in 1 folder...
i want to make a random include, bt in this caze the random include to start wit C.txt hw can i du it using <xt:include file="/FOLDER/*.txt" /> thanks.
Graham
Waplocus <xt:include file="/FOLDER/C*.txt" />
You can also use a range or other regex (must have at least one
* in the expression)
This will include files that start with
B or
C as long as it is not followed by an
a
<xt:include file="/FOLDER/[B-C][^a]*.txt" />
Or if it is from a get variable set by a link or form
<xt:include file="/FOLDER/{_$var|default}*.txt" />
or a xtscript variable
<xt:include file="/FOLDER/{_$$var|default}*.txt" />
You can also mix them
This will include files that start with
B or
C as long as it is not followed by the value set in the variable
<xt:include file="/FOLDER/[B-C][^{_$var|default}]*.txt" />
Waplocus
Waplocus It Only Include C.txt Without Any Random Include...
Graham
Waplocus Yes it does work
If you only have 1 file that starts with uppercase 'C' then it only has 1 file to choose from
here is my test using
<xt:include file="/00inc/files/a*.txt" />
http://auldphart.yn.lt/00inc/test
It will only choose from my test files
abc1.txt
abc2.txt
abc3.txt
The folder has several other files that do not match
a*.txt
Waplocus
Graham Please I Nid The Code 4 Jst The Comment Box that is attached to xt blog post.
Graham
Waplocus You can slice the comments section off a blog post with xtscript or a custom twig file or just hide the rest with css but that requires that a blog post is open on the page
Waplocus
Graham Can sum1 disable default forum search frm his forum?.