fedex Looking for smart ideas: I have 100 photos and I have to match 100 products. Any ideas on how to do it automatically? The photos are in order as the id of the item in database. Thanks🙈
ryanmitchell Just perform a database query directly on the ti_menus table? e.g. UPDATE ti_menus SET menu_photo = CONCAT(menu_id, ‘.jpg’) Then upload the photos to assets/media/uploads
fedex ryanmitchell Cause I saw that if I add a foto goes to the table: ti_media_attachments So it works by just adding the name of the foto there?
ryanmitchell Ah yes, my mistake Seems you need to add them to ti_media_attachments, not ti_menus, with attachment_type of menus and attachment_id of the menu_id
fedex ryanmitchell So I just don’t know the generic name that tasty assigns to the uploaded images. how could you think I automate this thing?
ryanmitchell It looks like uniqid() with the extension appended. You would need to write a php script to do the insert.