Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Forum: Hacks
    In reply to: Plugin: Offer an REST-API?
    Thread Starter Rosijanni

    (@rosijanni)

    Seems interesting, I installed the plugin. But that’s not exactly what I want. I need to offer my plugin’s data and not just the blog content or something like this. I’ve looked at Jetpacks page and the documentation. It seems nice but it doesn’t allow me to offer an custom endpoint that returns custom data.

    It look like I’ve really to create a custom API and put it just somewhere on the server. That disappoints me because I thought that it’s possible to do this by WordPress and use WordPress’ authentication to access the database.

    Thread Starter Rosijanni

    (@rosijanni)

    Hello bcworkz,

    okay. I’m already using WP_List_Table in other plugins. Now I know that it could be difficult. But I’ll give WP_List_Table a try.

    Thank you!

    Thread Starter Rosijanni

    (@rosijanni)

    Hi TCR,

    thank you. The problem I’ve is not inserting my plugin to the backend. That works fine, I’ve done some plugins already.

    The problem is: how to display the data in a dynamic table?
    My data looks like this:

    – Question
    – Answer 1
    – Answer 2
    – Add new Answer
    – Question 2
    – Answer 1
    – Add new Answer
    – Add Question

    So I want to have a list on the left-hand side with the questions, at the bottom the option to add a question. Then I need a second list with the answers…

    I’m more the OOP nativ programmer. In ObjC/C# I would have done this in a few minuets. But not in the web.
    So the question is: Provides WordPress such a dynamiclist sytem already or have I to code the whole list-handling on my own?

    Thread Starter Rosijanni

    (@rosijanni)

    You’re right! 😀
    Problem solved and works! 🙂

    Thank you, Andrew!

    Thread Starter Rosijanni

    (@rosijanni)

    Dynamic in my way:
    Open Page with ID 46 -> Page displays Background-image 1;
    Open Page with ID 22 -> Page displays Background-image 3;
    and so on…

    But I really don’t know whether my way is right. At the moment I’m trying to achieve it by check ID with PHP -> set BackgroundImage by jQuery

    Thread Starter Rosijanni

    (@rosijanni)

    That’s not required, that would be interesting but more work cause of upload stuff and so on.

Viewing 6 replies - 1 through 6 (of 6 total)