• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

Hiding html files from pages list

Community Beginner ,
Apr 27, 2015 Apr 27, 2015

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?

TOPICS
Web apps

Views

311

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Apr 27, 2015 Apr 27, 2015

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

...

Votes

Translate

Translate
LEGEND ,
Apr 27, 2015 Apr 27, 2015

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Apr 27, 2015 Apr 27, 2015

Copy link to clipboard

Copied

LATEST

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines