Articles

Anahita DocCamps

Anahita DocCamps's Articles

Scott Crawford

Scott Crawford

November 10 2013

Customizing Error Pages

1.  Copy /templates/base/html/error.php (the base template file for errors) to your template folder at /templates/[yourTemplate]/html/error.php.  This file renders the template for the error pages and will override the base file.

2.  Copy the folder (and files) from /templates/base/html/errors to your template folder at /templates/[yourTemplate]/html/errors.  You will need to copy the "errors" folder and each of the files it includes that you wish to adjust (401.php, 403.php, 404.php, 405.php, and default.php).  These files generate the content of the individual error pages and will override the respective base error content files.

3.  The last step is to make changes to the language files at /language/en-GB/en-GB.tpl_shiraz.ini.  You will need to create a language file for your template if you are not using Shiraz, for example en-GB.tpl_[yourTemplate].ini.

That's it!

Rastin Mehr
Rastin Mehr
November 10 2013 Permalink
Let me open the Tribe Support pages
Rastin Mehr
Rastin Mehr
November 11 2013 Permalink
You can create pages on the Tribe Support group now. Also can you create pages on GitHub as well? https://github.com/anahitasocial/anahita/wiki
Scott Crawford
Scott Crawford
November 11 2013 Permalink
OK I'll re-post once I've had a chance to expand them a bit.
Rastin Mehr liked this
Scott Crawford
Scott Crawford
November 24 2013 Permalink
@Rastin, on GitHub I've created a fork and added the docs on S3 and error pages on the fork I created... I didn't see a means of adding the docs to the Anahita wiki directly. Is there some means of bringing them in or merging docs?
Rastin Mehr
Rastin Mehr
November 24 2013 Permalink
you can do a pull request and I will merge them with the Anahita wiki.
Scott Crawford
Scott Crawford
November 24 2013 Permalink
Hmm.. when I initiate a pull request it returns "There isn't anything to compare. anahitasocial:master and wscrawford:master are identical." Seems that it's only looking at code and I didn't see any means of selecting the wiki for comparison.
Rastin Mehr
Rastin Mehr
November 24 2013 Permalink
Hah ... I thought wiki pages were compared as well. Technically we should be able to do fork and pull with wiki pages too. I need to play with GitHub a bit. In the mean time, does anybody else has any suggestions?

@Scott you always have the option of publishing it as a page on the Tribe Support group as well.
Scott Crawford
Scott Crawford
November 25 2013 Permalink
I'll post these to the Tribe Support group. Not sure I'll be able to join the doc camp so trying to get my homework done early.

Additional Information

  • Updated November 10 2013 by Scott Crawford
  • 8 Comments

Powered by Anahita