2

I have set up a Telescope app (fresh install) and have set it to private. I need to change the default template that is rendered (on the homepage) when Telescope is set to private and the user is not logged in.

I have looked through the routes and client/views templates and JS files and I can not figure out how to change the template that gets rendered when a Telescope installation is set to private.

rrrrrraul
  • 121
  • 2
  • 7
  • did you mean if the user is not loged in don't render the home page? – Ethaan May 14 '15 at 06:36
  • @Ethan -I have Telescope set to 'Private'. If the user is not logged in it currently shows the default "Sorry, you don't have the rights to view this page." .. I'd like to change the text with a custom Template. – rrrrrraul May 14 '15 at 06:45
  • 1
    Well i never see the telescope app but you can create a template inside the client/views folder an name it customTemplate and call it whatever they call the "sorry you don't have" message, did you have a place where i can see the telescope code? is [this](https://github.com/TelescopeJS/Telescope)? – Ethaan May 14 '15 at 06:57

2 Answers2

2

If you want to change to a custom template, but you don't want to mess with the actual code.

You can just change the template content here and put whatever code you like.

Just be sure to update the en.i18n.json file line 131

Ethaan
  • 11,291
  • 5
  • 35
  • 45
0

When a site is set to private, users get redirected to the no_rights template (no_rights.html).

Solved, with some help ;-) I hope others find this just as useful.

rrrrrraul
  • 121
  • 2
  • 7