|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
bearskin Smarty n00b
Joined: 08 Sep 2015 Posts: 2
|
Posted: Tue Sep 08, 2015 8:58 am Post subject: transfer {counter} in {include} file |
|
|
Hi
Is there a simple way transfer a {counter} as well as its value to an {include}-file and of course keep the nature/features of {counter} within the included file. What does the {counter}-code look like in the included file that receives the value and proceeds to increament?
current code
Code: | {include file="navigation_main/template/get.tpl" tree=$wrapper path=$path} |
thx.
bearskin |
|
Back to top |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Sat Sep 12, 2015 8:49 pm Post subject: |
|
|
The {counter} is global. Just use it in your sub template. |
|
Back to top |
|
bearskin Smarty n00b
Joined: 08 Sep 2015 Posts: 2
|
Posted: Tue Sep 15, 2015 1:08 pm Post subject: that was easy. |
|
|
that is why I could not find any examples.
Thx. |
|
Back to top |
|
kmm37 Smarty n00b
Joined: 17 Sep 2015 Posts: 1 Location: http://beton-beton37.ru
|
Posted: Thu Sep 17, 2015 8:38 am Post subject: |
|
|
so yeah |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|