2013-06-25 27 views
0

的管理上的圖像字段中添加圖像標題字段在以下位置我如何更新的Prestashop

管理/主題/默認/模板/控制器/產品/ images.tpl在ps_image表

<td id="td_image_id" class="pointer dragHandle center positionImage"> 
<input type="text" name="image_caption" value=image_caption > 
</td> 

我已經加入image_caption字段

imageLine({$image->id}, "{$image->getExistingImgPath()}", {$image->position}, "{if $image->cover}enabled{else}forbbiden{/if}", assoc," {$image->image_caption}"); 

使用上述數據從表retreive。現在我有更新stuggle的IMAGE_C aption field.how更新該字段?

回答

1

只有5中imageLine JS函數的參數,見下文

function imageLine(id, path, position, cover, shops) 

您需要通過類似的東西編輯此功能:

function imageLine(id, path, position, cover, shops, image_caption) 
{ 
line = $("#lineType").html(); 
line = line.replace(/image_id/g, id); 
line = line.replace(/image_caption/g, image_caption); 
.... 
} 

我希望這將幫助你。