Share » Forums » Setup & design » how to submit vars like $current_user...

how to submit vars like $current_user in urls (iframe)

how to submit vars like $current_user in urls (iframe)

Thursday 17 April 2008 5:22:01 am - 3 replies

Author Message

Mark Marsiglio

Thursday 17 April 2008 5:36:18 am

Assuming that $current_user is defined in the template you are using, and the iframe is not being entered in literal text in an XML block or a literal block in your code, then you should just have to put it in brackets.

<iframe src="bug_report.php?userid={$current_user}" frameborder="0" width="100%" height="1100"></iframe>

http://www.thinkcreative.com
Turning Ideas Into Strategic Solutions

André R.

Thursday 17 April 2008 5:36:46 am

$current_user is normally a object, so what you are looking for is probably $current_user.contentobject_id

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

San F

Thursday 17 April 2008 5:48:37 am

mh, don't know if i'm using a template, i'm new to ezpub
just entered the code above in the webinterface (where u can manage articles/contents and so on)

code:

<iframe src="bug_report.php?userid={$current_user.contentobject_id}" frameborder="0" width="100%" height="1100"></iframe>

$current_user.contentobject_id

{$current_user.contentobject_id}

last 2 lines only for testing
but output is not parsed
just shows the vars like they are shown above

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu