Category default image upload

This topic contains 10 replies, has 3 voices, and was last updated by  Kiran 5 years, 4 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #497666

    vivek
    Full Member
    Post count: 246

    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, Vivek

    #497667

    vivek
    Full Member
    Post count: 246
    This reply has been marked as private.
    #497682

    Alex Rollin
    Moderator
    Post count: 27815

    For 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 know

    #497729

    vivek
    Full Member
    Post count: 246

    Thanks Alex- that worked perfectly!

    #497736

    vivek
    Full Member
    Post count: 246

    Not 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?

    #497818

    Alex Rollin
    Moderator
    Post count: 27815

    I have alerted the developers, they will get to the bottom of that and find a solution

    #497963

    Kiran
    Moderator
    Post count: 7069
    This reply has been marked as private.
    #497992

    vivek
    Full Member
    Post count: 246
    This reply has been marked as private.
    #498130

    Kiran
    Moderator
    Post count: 7069

    Hi 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

    #498134

    vivek
    Full Member
    Post count: 246

    Thanks 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

    #498135

    Kiran
    Moderator
    Post count: 7069

    Changes 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

Viewing 11 posts - 1 through 11 (of 11 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount