Rene 7 Posted January 8, 2015 Report Share Posted January 8, 2015 Hello Community,I would like to be able to upoad images to a folder on the server and than import a csv-file with information of my products. Included will be a link to the file on the server! So next to the product I can see the picture than! Thanks! Quote Link to post Share on other sites
X2Raymond 164 Posted January 8, 2015 Report Share Posted January 8, 2015 Hello Rene, You will need to add two new fields to the Products module to do this. The first should be a URL field for the picture URL, and the second should be a custom field of type "HTML" for the actual picture. For the template, add an HTML img tag, and for the src attribute, use the new picture URL field that you previously added to products. You can also add CSS for styling. Please see the attached image for an example in the field editor. <img src="{c_pictureUrl}" /> You can then import your CSV file with the URLs to the images and test the fields and form layouts. Raymond 1 Quote Link to post Share on other sites
Rene 7 Posted January 9, 2015 Author Report Share Posted January 9, 2015 thanks Raymond, I will give it a try in a few minutes. Quote Link to post Share on other sites
Rene 7 Posted January 21, 2015 Author Report Share Posted January 21, 2015 Hello Raymond,today I tried that trick from above. It is not working. The Fields are all correct, but when I try to create the Picture field that you demonstrated on the screenshot, I'm missing the option "adjustments" under "Attributes" Quote Link to post Share on other sites
Rene 7 Posted January 21, 2015 Author Report Share Posted January 21, 2015 Ok, I chose the dropdown menu item "Picture URL" which I previosly created. than there is some text inserted. Now I open one of the records but than in the Picture field I only see the link. Quote Link to post Share on other sites
X2Raymond 164 Posted January 21, 2015 Report Share Posted January 21, 2015 Yes, that dropdown is used to insert attributes, it's not required that you use "adjustments," sorry to mislead in the screenshot. Please verify the fields: there should be two new custom fields, one of type "url" for the link, and another of type "custom". The custom HTML in the second field should use the insertable attribute associated with the first URL field. In the layouts, make sure the appropriate field is being used: I customized my products module to display the URL field on edits, and display the custom image HTML on views. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.