We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

{exp:addon:method url="{site_url}pdf/{segment_1}"} translates url to {site_url}pdf/index in the method

Development and Programming

hava's avatar
hava
2 posts
14 years ago
hava's avatar hava

Hello, seems there is some problems with global variables parsing. So

{exp:addon:method url="{site_url}pdf/{segment_1}"}

pass to method {site_url}pdf/index, so {site_url} - not parsed and {segment_1} - parsed. How to make it parse all global variables?

Thanks

       
silenz's avatar
silenz
1,651 posts
14 years ago
silenz's avatar silenz

This is a parse order problem. Standard global variables are pretty much the last things that are translated. So when your addon is executed you only get the variables.

So you gotta figure that out yourself in the addon. Maybe this is helpful.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.