Muut Archive Legend
@Muut · Joined 9 years ago · 18337 posts · 3878 topics · 137 reputation
Badges
Recent posts
-
How to list pages from a specific folder in a template blueprint
· 10 years ago
I'm sure this is really simple but I can't find reference other than here on how to list the pages of a specified folder using the data-options@ function for a template's blueprint. I can get list all
-
Trying to build a plugin for database communication through php
· 10 years ago
Thanks again for your reply. I am actually using D3.js for my visualization. Among the options you have mentioned, I feel the first one is only applicable for me, as I can not force the user to refres
-
Trying to build a plugin for database communication through php
· 10 years ago
There are also numerous data visualization frameworks out there if you wanted to load static JSON into a table that users then search/sort/filter. Tablesorter is one such framework. How you approach i
-
Trying to build a plugin for database communication through php
· 10 years ago
Then I only see two options: You create a standalone database frontend that you query via Ajax (as you note, that interface would have to be external to Grav). It would be up to your JS code to dete
-
Trying to build a plugin for database communication through php
· 10 years ago
OK. I have just checked your plugin. But it is for static json from data folder. I rather require dynamically generated json from database, which may change/ update as per user interactions. I think a
-
Trying to build a plugin for database communication through php
· 10 years ago
If you just need to load some JSON, then the Import plugin is all you need. You're going to need the updated version, though. The original maintainer is nonresponsive, so I will be asking Grav to make
-
Trying to build a plugin for database communication through php
· 10 years ago
No. I am not talking about MailChimp. The discussion in Gitter was not mine, I just found it. All I want is to get some data from my database. For your understanding, in my existing website, this page
-
Trying to build a plugin for database communication through php
· 10 years ago
Then we're talking past each other. Ajax is the use of JavaScript to make asynchronous calls to external APIs so you don't have to refresh a page. If I wanted to talk to MailChimp (which I believe is
-
Trying to build a plugin for database communication through php
· 10 years ago
Thanks for your reply. I am sorry, but I didn't get what you meant by proper Ajax . What I am doing now is, I have defined the database details in a db.yaml file and put my php files outside the grav
-
Trying to build a plugin for database communication through php
· 10 years ago
You wouldn't. The plugin is run when the page is viewed. Either do proper Ajax with JavaScript that contacts MailChimp and returns the results or tie a custom plugin to a custom route that is called b