At first I had this particular problem where Assets' {url} tag was returning "http://", all the time for any file.

    <li><a href="{url}" class="gallery"><img src="{url}"></a></li>

Resulting in:

<li><a href="http://" class="gallery"><img src="http://"></a></li>

After hours of debugging, I've found that it's because that part of the template is wrapped in a {exp:member:custom_profile_data} where {url}actually means the user's URL.

I identified the problem, fine, but there is no way I can remove {exp:member:custom_profile_data} in this template. Is there any other way to access Assets' {url}? Namespace it someway?

2 Answers 2


Another way would be to use the var_prefix parameter. {page_gallery var_prefix="image} {image:url} {/page_gallery}

And yet another would be just to use the Assets field as a single tag: {page_gallery}

  • That did it. Also was able to include image manipulations with {image:url:small}. Cheers! Apr 29, 2013 at 13:48

Try the shortcut tag: {page_gallery:url}.

  • This outputted the right URL, but seemed to break my HTML after one iteration. Apr 29, 2013 at 13:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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