Discussions
Activity
Sign In
How it works
Newscoop Support
no work encode
Vote Up
0
Vote Down
AlexMQ
January 2012
Posts: 21
Member
<a href="/{{$gimme->language->code}}/page/author/?name={{ $gimme->author->number|escape:'url':'utf-8' }}">{{ $gimme->author->name }}</a>
Do I transfer object or string with {{ $gimme->author->name }}?
if I transfer a string for encode url...
{{php}}
$test = $this->get_template_vars('author_const');
$test = base64_encode($test);
$this->assign('author_test', $test);
{{/php}}
the below code doesn't work
{{php}}
$test = $this->get_template_vars('author_64');
$test = base64_decode($test);
$this->assign('author_const', $test);
{{/php}}
{{ list_articles length="1" constraints="author is `$author_const`" ignore_issue="true" ignore_section="true" }}
I get a value from the url, decode it and transfer in author_const but it doesn't work
{{ if $gimme->author->name == $author_const }}
1 Comment
sorted by
Votes
Date Added
Vote Up
0
Vote Down
Martin Saturka
January 2012
Posts: 40
Member, Sourcefabric Team
Generally, I would suggest to print out the variable that you are not sure about, like {{ $author_cons }}
And if something strange there, I would do "var_dump($test);" inside a {{ php }} block (after taking that variable from templates).
It would help both to you and to us when trying to help you.
Post edited by Martin Saturka at 2012-01-30 07:04:36
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