S sajal Active member Oct 12, 2016 #1 Can anyone please give me the proper link where all the XEN template (e.g. xen:set) tags are explained with example?
Can anyone please give me the proper link where all the XEN template (e.g. xen:set) tags are explained with example?
Jake Bunce Well-known member Oct 13, 2016 #2 My posts in this thread have some code starting points for the template functions: https://xenforo.com/community/threads/when-will-we-see-a-developer-documentation.13779/ Otherwise I am not aware of any documentation. Is there something specific you are trying to do with template functions? Upvote 0 Downvote
My posts in this thread have some code starting points for the template functions: https://xenforo.com/community/threads/when-will-we-see-a-developer-documentation.13779/ Otherwise I am not aware of any documentation. Is there something specific you are trying to do with template functions?
S sajal Active member Oct 13, 2016 #3 In fact, I was just looking for the syntax of following PHP code. <?php $i=0; // some in-built foreach in Xenforo template foreach ($nodeList as $node) { $i++; if ($i==5) { // do something } } So, just incrementing a variable and do something if it's reached to 5. Without documentation, I was having a bit of hard and frustrating time . Upvote 0 Downvote
In fact, I was just looking for the syntax of following PHP code. <?php $i=0; // some in-built foreach in Xenforo template foreach ($nodeList as $node) { $i++; if ($i==5) { // do something } } So, just incrementing a variable and do something if it's reached to 5. Without documentation, I was having a bit of hard and frustrating time .
Jake Bunce Well-known member Oct 13, 2016 #4 The third code block here has a complete example of defining an array and looping over it using template syntax: https://xenforo.com/community/resources/display-a-random-banner.375/ Upvote 0 Downvote
The third code block here has a complete example of defining an array and looping over it using template syntax: https://xenforo.com/community/resources/display-a-random-banner.375/