Using same branch over and over?

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?
 

bigcajones

Client
Регистрация
09.02.2011
Сообщения
1 216
Благодарностей
683
Баллы
113
Global storage macro.
 

osho

Client
Регистрация
20.03.2012
Сообщения
125
Благодарностей
5
Баллы
18
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?
 

bigcajones

Client
Регистрация
09.02.2011
Сообщения
1 216
Благодарностей
683
Баллы
113
You would use a randomly generated variable name that only that thread will be using.
 

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