Template in template should know vars?

Status
This content is read-only, or is not open for further replies.

Robert9

Guest
offline
1. class1 fills a template "example" with some data, but we dont know the thread_it;
2. class c/p/thread shows the usual templates
3. a template mod adds template "example" to the usual template for thread.

How can i know $thread in the part of the template "example"?

template threads
some code, nowong $thread

includes template example, example knows nothing about $thread


Is there a magic to say:

Hey you template inside a template, i want you to know $thread from the template that...

Read more

Continue reading...
 
Liked by:
Status
This content is read-only, or is not open for further replies.
Top Bottom