* Graham This function will return the number of entries in your guestbook
<xt:guestbook_count />
Copy code
2014-04-17 16:05 · (0)
* 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.
2014-04-17 17:00 · (0)
* net3x * Graham Can I use xtscript on [blog, guestbook, forum] twig template..
2014-04-17 17:17 · (0)
* 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
2014-04-17 23:00 (edited 2014-04-17 23:03 by Graham ) · (0)
* net3x * Graham OK sir, I will post a demo page for blog/guestbook/forum with my design. If error then correct it.
2014-04-18 04:57 · (0)
* dead * Graham Can you guide me insert this code into TWIG ??
2014-04-21 17:22 · (0)
* 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
2014-04-21 17:36 (edited 2014-04-21 17:37 by Graham ) · (1)

Online: Guests: 1