Copy link to clipboard
Copied
I've created some html files that display webapp data in JSON format (I'm using them to retrieve webapp data via AJAX on the website front-end). I don't want these files showing up in the pages list. Is there a way to hide them from that list, yet leave them accessible for AJAX requests?
Hi there,
Since you can not put modules in .json files you will have done it in pages, and you can go to any page in the admin and under its options tick the "hide from search engines" tick. Done.
As a note - Since, as you will know, forming your own linline script in json format with web apps your last item will have a comma and you have to do that in post as it were with javascript. So ajax in the page as html, modify, convert to json.
If you have the new rendering engine on your site, on any pag
...Copy link to clipboard
Copied
Hi there,
Since you can not put modules in .json files you will have done it in pages, and you can go to any page in the admin and under its options tick the "hide from search engines" tick. Done.
As a note - Since, as you will know, forming your own linline script in json format with web apps your last item will have a comma and you have to do that in post as it were with javascript. So ajax in the page as html, modify, convert to json.
If you have the new rendering engine on your site, on any page you can append the url with ... ?json=true and you will get json output of the modules on that page. IF you make a blank page with no template and one module - Total 500 items on that page.
Copy link to clipboard
Copied
The "hide from search engines" option does not address the issue of the pages still being visible in the admin page list view.
There is a suggestion that will apparently be implemented later in 2015, but until then the only other option is to use file extensions that won't be considered pages, such as .tpl
.