• Resolved mateow

    (@mateow)


    Hello!
    I’m looking for a solution about creating pods in frontend.
    But I guess it’s not very typical since I want to make it automatically.

    My case:
    I’m going to do a user private “words bank” – I have a book on my webage and I want to allow user to add some word to his or her “glossary”. Eg. there’s a word in a book which user doesn’t know so it is possible to store this word for later learning (every user will have individual list of “unknown” words). I was looking for a solution and I found pods. So, I created a simple pod with only three fields: UserId, Word and CreateDate. This allows me to store and make relation between User and his list of words.

    At this point, I can display list of words based on UserId but how can I allow user to mark some word (technically to add a pod) from frontend? I know it’s possible using form, but that’s not exactly what I’m looking for. I want to make a tooltip (showed when user hovers a word) which contains a button “Add word to my glossary” (or whatever like that). When user hits the button, the word is added to user’s words list.

    At this time I’m not looking for creating relations between specific word in book or something like that – it’s all about inserting hovered value into database with user Id which hits “add” button.

    Any tips how to do that?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jim True

    (@jimtrue)

    Thread Starter mateow

    (@mateow)

    Hi Jim,
    Thank You for Your reply, I’ve read and watched this even before posting on the forum, I watched once again and unfortuntely I can’t find in movies anything that appears to be good solution in this case. I mean how to create pods “in background” – just by clicking the button as I mentioned in first post.

    I’ve tried to make something but I’m still little bit confused how to get started with that idea.
    I was thinking about creating some ajax call and perform an action of adding new pod based on given information (eg. specfic word could be sent as ajax parameter, UserId could be figured out in backend).
    And I’m wondering am I right, and have any one meet with this kind of using pods and could share with some tips?

    Plugin Author Jory Hogeveen

    (@keraweb)

    Hello @mateow

    I think Jim’s point was that your question isn’t very specific and because of that it’s out of scope for Pods free support. We can provide support for help with specific things related to Pods.
    So if you are asking if you should use AJAX, that is just a developer preference. I’d say go for it!

    Cheers, Jory

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Create Pods frontend with no form’ is closed to new replies.