Using Backlight 3 JSON API from PHP

One of the new features of Backlight 3 is a JSON API. It is a standard REST API interface and is very easy to use. The documentation shows all the endpoints and provides even a JavaScript and a jQuery library. How cool is that? If you want to use it with PHP, I have a […]

Copying record data between documents with remote scripts

I already showed one example using the clipboard to exchange data between two Tap Forms documents. Now there is a second way using script URLs: And in the target script ‘Test Script’, the parameters dictionary object contains the provided values: It is important that all option variables and their content is properly encoded so that […]

Adding keyboard support to single image pages

I love the single image page view since it supports customizations using phplugins. Unfortunately, navigation requires a mouse or a touchpad. But there is a fix for that! With some php and javascript magic, support for simple keyboard navigation can be added: Left key: previous image Right key: next image Escape key: go back to […]

Customizing search results

As many things with Backlight 2, the search page can be customized using CSS and phplugins. In this example, I removed the section headers and matching albums, and added a result count: Interested? Follow along and I show you how to get there! Hiding Album and Photos sections One regular request is to hide the […]

Redirect to https for WordPress

If your site already has an SSL certificate, you have most likely enabled automatic redirect from http to https in the Backlight 2 admin panel: Unfortunately, this redirect doesn’t work for WordPress based pages. But there is an easy fix for that. Just add following few lines at the beginning of your .htaccess file for […]

Copying record data between documents

TapForms 5 doesn’t provide a way to copy data from one document to another one. But since a few releases, there is support to copy data to and from the clipboard. This can be used for data exchange between two documents. Following functions copies the currentRecord in JSON format to the clipboard: Then in the […]

Page specific PHP code

Phplugins is very powerful as it can be used to customize your Backlight 2 based site to an extend not possible with the Backlight admin interface. Sometimes, it is not desired, that such a customization targets the entire site, but only a single page or a group of pages. In this short post, I show […]

Adding radio buttons and drop-down lists to forms

Since Backlight was introduced, once in a while users asked for more advanced form features such as radio buttons and drop-down lists. Backlight’s contact form editor is easy to use, but only supports text input. These forms are really just intended for simple contact forms. For more advanced forms, it is recommended to use WordPress […]

Get recent blog posts outside of WordPress pages

On my photography site, I display a list of the last 5 blog posts in the footer on all pages. I use the rss feed to get the most recent posts outside of the wordpress environment. This is how I do it using phplugins: And then I can call $this->dlp_get_latest_blog_posts(10, ‘my-link’) wherever I would like […]

Web Design Consulting

Do you need help designing your web site or getting Backlight working the way you want? Contact me to discuss your idea or project.


Buy me a Coffee

If you like what I share here, please consider buying me a coffee or a print. This helps keeping me motivated to continue posting. Thank you!

Buy Me A Coffee

Categories