Hello,
Im about to build a new custom post type that i will call "Leader board".
To this CPT i will add some fields, ofcourse , and one of them is "points" 🙂
Now in back-end i will add posts to the cpt and will have around 50 posts.
In the front-end i like to have a view that shows this "Leader board" as a simple table.
Thats no problem to do. And the leader board (front end) will be shown on a big public screen. (digital signage)
Now to my question:
I like the view to be updated without reload.
Like with Ajax reload that checks if any new/edited data has been posted to the CPT.
With manual reload this is no problem to do, but we cant click reload on the big screen.
AND I had hoped to avoid meta-refresh every 30 sec because the big screen will flash every 30 sec and that is not so nice...
Unfortunately no this isn't possible. You won't be able to ajax refresh the view. You will need to write custom code to refresh the page/view without any interactions.
This is not something that is doable with Toolset.
Oh! thats was very unfortunately for me 🙂
I hade so much hope to do this in toolset, because toolset have saved me alot of times where no other plugin can deliver.
So what you are saying is that with custom code there might be a chance (big/small?) to make it work ?
And custom code you taking about ajax/jquery ?
Why im asking is if i need to find any contractor that can make it happen because i cant code...
So what you are saying is that with custom code there might be a chance (big/small?) to make it work ?
Yes there is a possibility to make it work, if they are able to write the jquery to refresh only a portion of the page, this might help to reload the view.
Also you can try approaching one of the registered contractors from our site. They usually have extensive knowledge about Toolset so that can be a bonus as well. https://toolset.com/contractors/
Hey!
Okej i have checked this out (Google it)
🙂
Im not a js-coder so its quite hard to know what i can do with this, but if i use this guide and change the #main to the viewid and instead of "property-detailed.php" url i have the url to a page that contains the view?
Ex domian.com/lederboardview
Or does it have to be an php?
The guide:
$(document).ready(function() { /// Wait till page is loaded
setInterval(timingLoad, 3000);
function timingLoad() {
$('#main').load('property-detailed.php #main', function() {
/// can add another function here
});
}
}); //// End of Wait till page is loaded
I highly recommend getting an experience developer to implement this for you as there can be more to this.
Given that this is a dynamic website you won't be able to simply reload a php file as wordpress uses more templating and dynamic content loading on the templates.