New UpdateNew Release: Bludit v3.12.0 "Handwashing"
02. April, 2020 - 16:54 SamBrishes

The new Bludit Version "Handwashing" has been published on the 21/03/2020. It is just a Minor Release, but contains a quite useful new API method.

New API Method

The new release allows you to get all files, which has been uploaded on a page. You just need to pass the respective key, which is mostly the page slug itself, after the new endpoint. Below you'll find a small example using jQuery's AJAX method.

jQuery.ajax({
    url: "http://<yourdomain>.<tld>/api/files/<pagekey>",
    type: "GET",
    data: {
        token: "<apikey>"
    }
}).done(function(response) {
    console.log(response);
});

If everything works like it should, you will receive the following response:

{
    "status": 0,
    "message": "Files for the page key: <pagekey>",
    data: [
        {
            thumbnail: "thumbnail_path>",
            file: "<source_file_path>",
            filename: "<file_basename>",
            mime: "<mime_type>",
            size: "<file_size>"
        }
    ]
}

That's a really neat feature to build AJAX-enabled galleries, applications or provide images which aren't embed on the page's content directly. It will also be REALLY useful for the upcoming iOS and Android application, but more on that in another post. So the idea itself is awesome, but at the moment I've two issues using this API. First, I really don't know how you can select the files of a child page, because using the obvious "/" doesn't work. The second problem is, that the function behind this method uses the Symlink Path to the files, which, at least for me, is not always created.

I guess these issues should be solved on the new release.

Other Changes

Of course, this isn't the only change on the new update. The core plugin "Version" also received 2 new and only settings: The first on allows you to show or hide the current installed version on the admin sidebar, the second one enables or disables the alert message on new releases. Next to them the "Robots" plugin now takes care of the Sitemap and adds them - if enabled - to the robots.txt output file.

A few bug fixes, updated translation strings and the TinyMCE 5.2.0 update are also part of 3.12.0. You can find the changelog on Bludit's GitHub Repository.

Stay 200,
Sam.

Rate this Post

∅ 4 out of 1 Votes

Currently there are no comments, so be the first!