2012-12-24, 04:22 PM
I'm shocked I cannot find this answer myself (using a search phrase) so I think I'm using the wrong terminology here. Can anyone help?
First, what's the correct way to use a variable from another template? I'm trying to do something along the lines of using {$this_variable} in a template that it wasn't already designed to appear in. I suspect that if I paste something (maybe at the top) into the page, I can tell variables from *another* page to become available in the page I want to place {$this_variable}
How exactly do I accomplish this? What's the "trick" to making a template accept the variable from a different template?
Next, what's wrong with the terminology I'm using to ask this question? For me to search on Google and on this forum, only to not find my answer, tells me that my way of asking is incorrect. I must be asking for apples when in fact I should have said oranges. Kind of like a mixup when somebody is speaking in a language that isn't their first language. So... what's the correct terminology for my question? In other words... what sentence would have turned up the results in a google search? I know for a fact this question MUST have come up before today, but I'm just not sure how it was physically "asked" so I was unable to find it on my own. Should I be using a different word than "template" or a different word than "variable" when I talk about these items? Please help me understand.
Thanks!
First, what's the correct way to use a variable from another template? I'm trying to do something along the lines of using {$this_variable} in a template that it wasn't already designed to appear in. I suspect that if I paste something (maybe at the top) into the page, I can tell variables from *another* page to become available in the page I want to place {$this_variable}
How exactly do I accomplish this? What's the "trick" to making a template accept the variable from a different template?
Next, what's wrong with the terminology I'm using to ask this question? For me to search on Google and on this forum, only to not find my answer, tells me that my way of asking is incorrect. I must be asking for apples when in fact I should have said oranges. Kind of like a mixup when somebody is speaking in a language that isn't their first language. So... what's the correct terminology for my question? In other words... what sentence would have turned up the results in a google search? I know for a fact this question MUST have come up before today, but I'm just not sure how it was physically "asked" so I was unable to find it on my own. Should I be using a different word than "template" or a different word than "variable" when I talk about these items? Please help me understand.
Thanks!