Using same branch over and over?

  • Автор темы Автор темы osho
  • Дата начала Дата начала

osho

Client
Регистрация
20.03.2012
Сообщения
125
Реакции
5
Баллы
18
I'm setting up a system that calls a query string url on my server and spits back information I want (URL, text). I do this for each template, but it's not very efficient. If I want to change something, I have to change it across every template/branch.

Is there a way to make a "global" branch that I can call via each template? I guess I could create a template that just does my query string and writes it to a file, then calls the template to do posting... but that's sort of messy?

Here is the current process:

Request URL and text from my server -> parse and hold in FieldData
Open third party URL and post content -> verify
Request another URL on my server -> Post back to my server with success/failure.

Does anyone have a suggestion?
 
Global storage macro.
 
How would that work with different values on every template execution?

Template1.xml runs and grabs a unique comment from my server... template2.xml runs and grabs a different unique comment from my server?
 
You would use a randomly generated variable name that only that thread will be using.
 

Кто просматривает тему: (Всего: 0, Пользователи: 0, Гости: 0)