Discussions
Activity
Sign In
How it works
Newscoop Support
Dynamic set_section number
Vote Up
0
Vote Down
_davidgv
December 2012
Posts: 8
Member
Hello, im trying something like this to make the set_section dynamic.
{{ set_section number="{php}print $_SESSION['id'];{/php}" }}
but its not working,
I was wondering if some one knew a similar way to do it.
Thank you
Post edited by _davidgv at 2012-12-10 13:06:49
2 Comments
sorted by
Votes
Date Added
Vote Up
0
Vote Down
Holman Romero
December 2012
Posts: 261
Member
Hi,
You can try by creating a variable and using $smarty to fetch value via GET for example, something like:
{{ $sId=$smary.get.sectionId }}
{{ set_section number=$sId }}
Read more about the $smarty object here
http://www.smarty.net/docs/en/language.variables.smarty.tpl
What exactly do you want to do?
All Best,
Vote Up
0
Vote Down
_davidgv
December 2012
Posts: 8
Member
Hello Holman,
Thank you very much, that worked perfectly!
Best Regards,
Add a Comment
Start a New Discussion
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership
Categories
All Discussions
8,397
Sourcefabric
↳
Announcements
25
Newscoop
↳
Newscoop Support
2,189
↳
Newscoop Development
722
↳
Newscoop Security
13
↳
Newscoop Documentation
17
↳
Newscoop Themes
69
Airtime
↳
Airtime Support
3,139
↳
Airtime Development
1,286
↳
Airtime Français
146
↳
Airtime Documentation
14
↳
Airtime Hacks
102
↳
Promote your station!
37
↳
Airtime Security
11
Booktype
↳
Booktype Support
277
↳
Booktype Development
55
↳
Booktype Documentation
7
Superdesk
↳
Superdesk Development
264
↳
Web Publisher
21
Poll
No poll attached to this discussion.
Top Posters
Albert FR
1978
Martin Konecny
1860
Andrey Podshivalov
1526
Voisses Tech
1423
John Chewter
899
Daniel James
844
Roger Wilco
784
hoerich
627
Paul Baranowski
389
Cliff Wang
339