Category default image upload
This topic contains 10 replies, has 3 voices, and was last updated by Kiran 6 years, 4 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket-
AuthorPosts
-
July 15, 2019 at 8:35 am #497666
Hi,
When I am using GDsettings>import>categories to import the category map icons and defualt image, the URLs are getting truncated eg the import file contains : https://yopune.com/wp-content/uploads/2019/07/Hobby-classes-color-3.jpg
But the export file shows only : /2019/07/Hobby-classes-color-3.jpg
And the image does not show in the category.( the image has been uploaded and exists in the above location)
WHen image is uploaded from the category page button then image is correctly shown in the category, and the export also shows full url. As i have a large number of categories i would like to upload these, pls suggest how.
thanks, VivekJuly 15, 2019 at 8:36 am #497667This reply has been marked as private.July 15, 2019 at 8:56 am #497682For category just use the base filename like filename.jpg
If the image exists then it will skip it and use the existing image.
Give it a try and let us knowJuly 15, 2019 at 12:59 pm #497729Thanks Alex- that worked perfectly!
July 15, 2019 at 1:19 pm #497736Not quite, it seems…So, while the category images are showing correctly as the default images in the category page and the category listing, however they are strangely not showing up in the post_images fallback order. [ these category images were uploaded in uploads/2019/07/filename.jpg; and the category import file had filename.jpg as you had suggested]
However, if the default image is uploaded manually/individually from the admin category page ,then it shows properly in the fallback order.Any clue why this may be happening? Is it an image resizing issue as i dont see multiple sizes of these images having been created in teh uploads/2019/07 folder?
July 15, 2019 at 6:59 pm #497818I have alerted the developers, they will get to the bottom of that and find a solution
July 16, 2019 at 2:15 pm #497963This reply has been marked as private.July 16, 2019 at 3:20 pm #497992This reply has been marked as private.July 17, 2019 at 7:55 am #498130Hi Vivek,
I have applied patch on your site to show default category image for post.
Here is are import image/icon for category is working.
= New Category
– If full image path is used then it will download/upload that image via image uploader and set as a category image/icon(if image is valid then no require to upload image at the end of import).
– If relative path or image name it requires to upload image at the end of import.= Edit Category
– It compares basename of existing category image/icon from database and from csv. If basename are same then it will not update/upload image.
– If full image path is used then it will download/upload that image via image uploader and set as a category image/icon(if image is valid then no require to upload image at the end of import).
– If relative path or image name it requires to upload image at the end of import.Please check and let us know.
Kiran
July 17, 2019 at 8:57 am #498134Thanks very much, Kiran. The category default images are now appearing. I shall follow your instruction above to set the images for another CPT, and let you know if any issues.
Also, can you let me know where is the patch you have put on the site, and will i need to do something when GD is updated?
thanks, Vivek
July 17, 2019 at 9:02 am #498135Changes are included in core plugin, so don’t worry about future updates.
In case you need patch: https://github.com/AyeCode/geodirectory/pull/861/commits/460363ef0c1aabb3195d09e2ae9532fca4f4fd22
Kiran
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket