TemplateVariable.zip (Size: 7.95 KB / Downloads: 1)
In above sample project, I tried to use the IWTemplateProcessorHTML1.Variables in order to replace some variable in template to actual value, but I found out that only the first one is replaced. Is this intended or bug?
I only found IWTemplateProcessorHTML1.Variables able to replace every occurrence in both master template and default template. But it is only able to replace one variable, (variable2, variable3, variable4 in above sample is ignored).
Is there any other way to achieve this? I need to replace some html attribute value like above sample,
- OnUnknownTag event cannot do that due to the event only called when it is at same level as tag &th1&t{%var%}&t/h1&t, doesn't work if try to &th1 {%var%}&t&t/h1&t.
- OnBeforeProcess event seems like doesn't work for template with master template.