|
<< Click to Display Table of Contents >> Navigation: Telegram > 2023 > 08 > 31 > Telegram_2023-08-31T00 |
2023-08-31T00:04:46
Use the template's component OnBeforeProcess event. You receive a stream as a parameter. The stream contains the template as it was loaded from your template file. You can change it and write it back.
Warning about what you do in that method: you can kill the performance of the template processor if you do slow operations in that event (reading from database, etc)
2023-08-31T00:07:38
I want read sidebar items from database
2023-08-31T00:11:43
well... your choice...
2023-08-31T00:35:24
if you want to read it from DB consider caching the query results somehow so you minimize the impact
2023-08-31T00:39:33
ok I will try to find the source of this peoblem
2023-08-31T00:39:43
thanks
2023-08-31T00:40:23
sure