Graham
This function will return the number of entries in your guestbook
net3x
Graham Yes sir it works fine with xtscript. I upload twig xt:guestbook template. some showing error. May be my twig template editing problem. OK i checking it.
net3x
Graham Can I use xtscript on [blog, guestbook, forum] twig template..
Graham
net3x Yes in a limited fashion
Blog and guest book can only use xtscript variables in the twig template
you cannot use actual xtscript functions
the blog/guestbook
must be assigned to a variable inside the xtscript
you can then use
$vars in the twig template
the blog/guestbook variable must then be either printed out inside the xtscript
or outside as {_$$guestbook|}
you cannot do it with forum as that is parsed after xtscript
net3x
Graham OK sir, I will post a demo page for blog/guestbook/forum with my design. If error then correct it.
dead
Graham Can you guide me insert this code into TWIG ??
Graham
dead Well it is not really meant to go in the twig file you can add the function anywhere on the page or in the text of a link to your guestbook from another page but if you want to then just as described below.
The comment count would have to be assigned to a variable in a xtscript file and so would the guestbook you can then add the xtscript variable name into the twig file and the value would be inserted when the xtscript is processed