I can't catch the error

I can't catch the error

Monday 30 January 2006 1:26:20 am - 3 replies

Modified on Monday 30 January 2006 1:28:29 am by Børge Warvik

Author Message

Børge Warvik

Monday 30 January 2006 1:44:30 am

Figured this one out eventually :)

David Boman

Monday 30 January 2006 1:50:13 am

Can you give us some hints? I have a lot of these and I'm not really sure how to start debugging them...

Børge Warvik

Monday 30 January 2006 2:14:11 am

I was wrong! My code didn't work at all, it just looked like it did. It turned out that my $node didn't have a url attribute.

So printing the link like this:

<a href="{attribute_view_gui attribute=$link.object.data_map.url}"> {attribute_view_gui attribute=$link.object.data_map.name} </a>

Will give you links on the page, but if you view the the source you'll see:

<a href="">[name of link]</a>

It turns out that you need to use the attribute location, like this:

{attribute_view_gui attribute=$link.object.data_map.location}

That will give you all you need including wrapping the link in the a tag for you!

Hope that answers it

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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.