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

eZ Community » Forums » Discussions » get the url from ezimage tag with...

get the url from ezimage tag with data map

get the url from ezimage tag with data map

Tuesday 27 May 2014 7:28:08 am - 1 reply

Hi,This is my template code,$(function() {$('#tags').autocomplete({ source: function (request, response) { $.ajax({ url: '/arbles/searchtc', dataType: "json", type: "POST", data: { content: $('#tags').val() }, success: function (xmlResponse) { var data = $.map( xmlResponse , function (item) { return { label: item.Name, value: item.value }; }); response(data); } }); } }).data("autocomplete"blunk.gif Emoticon._renderItem = function (ul, item) { return $("

"blunk.gif Emoticon .data("item.autocomplete", item) .append("" +"" + "" + item.label + "" + "" + item.value + "" + ""blunk.gif Emoticon .appendTo(ul); };});i want to do a auto complete with a text box showing name and a image with the auto complete field.----------------------and this is the php code.$params = array('Depth'=>1, 'Offset'=>0, 'Limit'=>1000, 'SortBy'=>$sortBy, 'ClassFilterType'=>'include', 'ClassFilterArray'=>$includeClasses, 'AttributeFilter' => array('and', array('frontpage_folder/name', 'like', $val )) ); $dataMap = $results[0]->dataMap();----------------i have managed to get the attributes of the image field using this code,var_dump($datamap['iconcp']->attribute('data_text'));i want to know how to fetch the url of the image from the ezimage tag.

Tuesday 27 May 2014 2:59:58 pm

Do you want to get the image URL in your php or your ezpublish template ?

I did not understand why you are getting it with PHP, it does exist in ezpublish by default.


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

36 542 Users on board!

Forums menu

Proudly Developed with from