variable in template and subtemplate

Post Reply
erosmembers
Posts: 97
Joined: Tue Mar 15, 2016 9:41 pm

variable in template and subtemplate

Post by erosmembers »

Can I define a new variable "xyz" in template to use this new "xyz" in subtemplate?
admin
Site Admin
Posts: 37993
Joined: Wed Sep 10, 2008 11:43 am

Re: variable in template and subtemplate

Post by admin »

Take a look at custom tags

admin/?operation=rotation&sub=rot_tube&subsub=rot_cms_custom_vars&
Don't forget to run script update
erosmembers
Posts: 97
Joined: Tue Mar 15, 2016 9:41 pm

Re: variable in template and subtemplate

Post by erosmembers »

How can I set e.g. <!--CUSTOM_VAR_SID--> in template with a value?
I did not find this in forum and not in Wiki.
admin
Site Admin
Posts: 37993
Joined: Wed Sep 10, 2008 11:43 am

Re: variable in template and subtemplate

Post by admin »

You have to create SID var in admin aтв assign a value to it, and then use <!--CUSTOM_VAR_SID--> in template.
Don't forget to run script update
erosmembers
Posts: 97
Joined: Tue Mar 15, 2016 9:41 pm

Re: variable in template and subtemplate

Post by erosmembers »

I have seen the definition.
But I need a variable that I can change.
I would like to store e.g. a sourceid at runtime.
admin
Site Admin
Posts: 37993
Joined: Wed Sep 10, 2008 11:43 am

Re: variable in template and subtemplate

Post by admin »

Yes, you can change that variable in admin area
Don't forget to run script update
Post Reply