Template During/Execute Code is usually used to perform the following:
1. To insert HTML output from a program into the page.
Please note that Template After code can also be used to achieve a similar result, by placing tags within the template (for example %ReplaceMe%) and then swapping %ReplaceMe% with the new results, in the Response variable passed into the Template After code.
However, when the same custom code needs to be run from multiple different templates, it may make more sense to use During/Execute code than Template After code; for example, if a banner image needs to be displayed on a number of pages, and a different image needs to be displayed depending on the user who is logged in, using During/Execute code would probably be more practical. One During/Execute subroutine could be created that can be referenced from all Templates that need it, instead of having to create After code for every single template that requires the different image displayed.
| previous | next |
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 |

