Search the Community
Showing results for tags 'likes'.
Hi! I'm new to ProcessWire and i need a "little" help with my family's website. What i want: The website of my family contains a gallery, where photos are shown in several albums. The current tree looks like this: ---photos ------ New Year 2013 ------ Going to the zoo ------ Dad's 60th birthday ------ Our Pug ------ ... Showing all pictures on one page is no problem for me, i got that working. But the photos should be Instagram-like "commentable" and "likeable". So i have to create a page for every single image, right? My questions are now: what's "the best" way to do this? Is it possible to automate this process? And how? I hope you understand, what i'm trying to do... my english is not that good, school is a few days ago... paulbrause
Hello. I want implement image "likes" system. I want to use built-in description field to store values (because client needs opportunity to change values by himself). I have one problem - how change image description with ajax request? For example, I send request via jQuery to file likes.php <php include "./index.php"; $gal_page = $wire->pages->get(1188); //I don't know how can I pass image id or something similar and then select this image $image_id = $wire->input->get("img_id"); //set OF false $gal_page->of(false); //I know that there isn't such method, just for example $gal_page->images->eq($image_id)->description = "34512"; $gal_page->save(); ?> As you see from code comments, my main problem is saving image id or something else and finding image by this info. Have you any ideas, how can I implement this?