Open ajayNemaliga opened 4 months ago
In listing collection schema you define image as follow image:{ filename: { type: String, default: 'listingimage' }, url: { type: String, default:"https://www.istockphoto.com/photo/exterior-of-modern-home-gm169821670-26945756?utm_campaign=srp_photos_top&utm_content=https%3A%2F%2Funsplash.com%2Fs%2Fphotos%2Fhome-design-from-outside%3Flicense%3Dfree&utm_medium=affiliate&utm_source=unsplash&utm_term=home+design+from+outside%3A%3Areduced-affiliates%3Aquarter", set: (v) => v === ""?"https://www.istockphoto.com/photo/exterior-of-modern-home-gm169821670-26945756?utm_campaign=srp_photos_top&utm_content=https%3A%2F%2Funsplash.com%2Fs%2Fphotos%2Fhome-design-from-outside%3Flicense%3Dfree&utm_medium=affiliate&utm_source=unsplash&utm_term=home+design+from+outside%3A%3Areduced-affiliates%3Aquarter":v, } }
Still image is not displaying on cards @Kanakuppi @Kanakuppi
Still image is not displaying on cards @Kanakuppi @Kanakuppi
im facing same problem image not show in cards and you have a solution of this problems plz provide
I also faced the same problem. In data.js file you remove filename inside image. Then you only put as following image:{ Type: String, Default:"https://www.istockphoto.com/photo/exterior-of-modern-home-gm169821670-26945756?utm_campaign=srp_photos_top&utm_content=https%3A%2F%2Funsplash.com%2Fs%2Fphotos%2Fhome-design-from-outside%3Flicense%3Dfree&utm_medium=affiliate&utm_source=unsplash&utm_term=home+design+from+outside%3A%3Areduced-affiliates%3Aquarter", set: (v) => v === ""?"https://www.istockphoto.com/photo/exterior-of-modern-home-gm169821670-26945756?utm_campaign=srp_photos_top&utm_content=https%3A%2F%2Funsplash.com%2Fs%2Fphotos%2Fhome-design-from-outside%3Flicense%3Dfree&utm_medium=affiliate&utm_source=unsplash&utm_term=home+design+from+outside%3A%3Areduced-affiliates%3Aquarter":v, }
But I also have a problem I'm chage the model schema in given format and my problem is not resolved
On Wed, Nov 20, 2024, 11:32 PM ROHIT @.***> wrote:
I also faced the same problem. In data.js file you remove filename inside image. You only put as following image:{ Type: String, Default:" https://www.istockphoto.com/photo/exterior-of-modern-home-gm169821670-26945756?utm_campaign=srp_photos_top&utm_content=https%3A%2F%2Funsplash.com%2Fs%2Fphotos%2Fhome-design-from-outside%3Flicense%3Dfree&utm_medium=affiliate&utm_source=unsplash&utm_term=home+design+from+outside%3A%3Areduced-affiliates%3Aquarter ", set: (v) => v === ""?" https://www.istockphoto.com/photo/exterior-of-modern-home-gm169821670-26945756?utm_campaign=srp_photos_top&utm_content=https%3A%2F%2Funsplash.com%2Fs%2Fphotos%2Fhome-design-from-outside%3Flicense%3Dfree&utm_medium=affiliate&utm_source=unsplash&utm_term=home+design+from+outside%3A%3Areduced-affiliates%3Aquarter":v https://www.istockphoto.com/photo/exterior-of-modern-home-gm169821670-26945756?utm_campaign=srp_photos_top&utm_content=https%3A%2F%2Funsplash.com%2Fs%2Fphotos%2Fhome-design-from-outside%3Flicense%3Dfree&utm_medium=affiliate&utm_source=unsplash&utm_term=home+design+from+outside%3A%3Areduced-affiliates%3Aquarter%22:v , }
— Reply to this email directly, view it on GitHub https://github.com/apna-college/wanderlust/issues/16#issuecomment-2489236985, or unsubscribe https://github.com/notifications/unsubscribe-auth/BKSGDMATGRMUIOAJEKIESZL2BTFC7AVCNFSM6AAAAABKO55VKOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIOBZGIZTMOJYGU . You are receiving this because you commented.Message ID: @.***>
in the listing collection schema the type of image is String but in the data.js file the image type is object