I’m looking for a stacks solution to do the following.
On web page load, a stack to check a URL such as https://website.com/offers.pdf to see if this file exists. If the file exists then do thing 1, and if the file doesn’t exist, then do thing 2. Things 1 & 2 would be stacks areas to add stacks content.
Typical example applications for this would be to display current offers on a web site if the file offers.pdf is loaded to the server, or display Xmas Menu download button to download xmas_menu.pdf, if the file xmas_menu.pdf, is present on the server. There are many such applications where a business owner could add promotions, updates, etc, by creating a pdf (or other file) and loading to their server.
I am aware that this can be done with a full CMS solution, but such a stacks solution could be a much lighter and quick to implement solution. I would see this type of solution being just 1 stack, requiring 1 URL to be input and then the stacks content to be added as required.
Does anyone know of such a solution?