Error Page - Access Denied

Does anyone know what page I edit to change the design of the Polyglot message page? 

  • 339
  • More
Replies (9)
    • You can change all messages in Polyglot directly - just search for the original word/phrase and edit the key. 

      • Thank you Andrew. I do not want to change the messages. I want to change the page design. 

        Is it possible to "Add Blocks" to the page?

        • Can anyone help?

          Please.

          • Judging by your screenshot, that error is being displayed on a 'Feed Item'. If you go into Studio > Pages >Timeline and then choose 'Feed Item' from the drop-down box, maybe you can do something there??? Just know that any blocks you put there will display on ALL feed items and not specifically show up when an error appears. 

            • Hi Chris,

              Thank you for your reply, tried that but it did not work. 

              The Polygot Error messages appear to be loading on their own pages.

              Can anyone let me know how to edit the page displaying Polygot error messages? 

              • Hello InPage !

                There is no special page for this error message - it is pasted to every case separately. So you may customize it only with placing HTML code in this key directly change color, font etc) only.

                • Hi Leonid, 

                  Thank you for the reply, I am looking for a solution to 2 problems with this:

                  1. I have Ad Code that is appearing on the "Error Pages" that essentially have no content. I would like to prevent Ads from displaying on these pages.
                  2. The Current Error pages act like a "Stop" sign, offering no path forward to other content or parts of the site. I would like to give the user options to choose a path forward. 

                  Is there any way for me to Edit the "Error" pages at a source level?

                  • Then you need to redeclare in your current template (but better to create the new one and set this actions there) displayMsg method. It has the following code:

                    function displayMsg ($s, $bTranslate = false)

                        {

                            $sTitle = $bTranslate ? _t($s) : $s;

                            $oTemplate = BxDolTemplate::getInstance();

                            $oTemplate->setPageNameIndex (BX_PAGE_DEFAULT);

                            $oTemplate->setPageHeader (_t('_Error'));

                            $oTemplate->setPageContent ('page_main_code', DesignBoxContent(_t('_Error'), MsgBox($sTitle), BX_DB_PADDING_DEF));

                            $oTemplate->getPageCode();

                            exit;

                        }

                    so to this part

                    $oTemplate->setPageContent ('page_main_code', DesignBoxContent(_t('_Error'), MsgBox($sTitle), BX_DB_PADDING_DEF));

                    can be transformed like

                    $sNewCode = $this->parseHtmlByName('your_custom_html_code.html');

                    $oTemplate->setPageContent ('page_main_code', $sNewCode . DesignBoxContent(_t('_Error'), MsgBox($sTitle), BX_DB_PADDING_DEF));

                    This redeclared method should be placed to the (for example) modules/boonex/protean/classes/BxProteanTemplate.php file

                    See the details about own templates here https://github.com/unaio/una-vendor-template

                    So, in this case, you will cover most cases about errors pages.

                    • Thank you Sir

                      Login or Join to comment.