![]() |
Variables in templates
Hi there,
I'm trying to optimize some processes and for that I need to know if it's possible to have variables inside of templates. Now, I know about conditionals and stuff, but what I want to achieve is typing less code while manually updating some custom slider-templates or having these templates update automatically. A SIMPLE EXAMPLE: Code:
<ul id="slider"> The optimal thing would be extracting the thread-ID and title of each thread marked as featured item, so that it shows up automatically. Do I make sense? :D Thanks! |
You can use variables, you just put a php variable directly in the template. You can use any variable that's available when the template is eval()'d. So you could do something like:
Code:
<ul id="slider"> Then of course you'd need to set those variavle in php code somewhere, like a plugin or a custom script. |
All times are GMT. The time now is 01:13 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|