Yet another parse order problem!

I'm trying to use http://devot-ee.com/add-ons/rest. This works:

{exp:rest url="/api/get-default-profile-image/175/" format="json"}

But this doesn't work:

{exp:rest url="/api/get-default-profile-image/{member_id}/" format="json"}

(I changed the 175 with {member_id}. Any suggestions how I can get this to work?


The easiest solution would be to use Mo Variables which provides an early parsed {logged_in_member_id} which will allow you to use it as a dynamic value in your URL path.

{exp:rest url="/api/get-default-profile-image/{logged_in_member_id}/" format="json" parse="inward"}
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.