This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit ezplatform.com

eZ Community » Forums » Developer » As extracting information of a div?
expandshrink

As extracting information of a div?

As extracting information of a div?

Friday 20 September 2013 2:23:50 pm - 1 reply

Greetings
As I can load an image from a label div:

 <div>    <div data-src="images/image_1.jpg"></div>  </div>

the traditional methods, don't work:

{$node.object.data_map.my_image.content[image_size].full_path}
{$node.object.data_map.my_image.content[image_size].full_path |ezroot}
{$node.object.data_map.my_image.content[image_size].full_path |ezurl}

Saturday 21 September 2013 3:55:31 pm

<span style="color: #66cc66;">{</span><span style="color: #ff0000;">$node</span><span style="color: #66cc66;">.</span>object<span style="color: #66cc66;">.</span>data_map<span style="color: #66cc66;">.</span>my_image<span style="color: #66cc66;">.</span>content<span style="color: #66cc66;">[</span>image_size<span style="color: #66cc66;">]</span><span style="color: #66cc66;">.</span>full_path <span style="color: #66cc66;">|</span>ezroot<span style="color: #66cc66;">}</span>

is the correct way to produce the url to an image.

what is the html produced in your case? are you sure it's not a problem of quotes?

ps: wtf is happening to the editor here???

Modified on Saturday 21 September 2013 3:56:17 pm by Gaetano Giunta

expandshrink

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

36 542 Users on board!

Forums menu

Proudly Developed with from