Using Intraweb (8)-System template

Source: Internet
Author: User


We can customize the system error template, and after editing iwerror.html is placed in the template folder, it will replace the default template.
{On the main page, this is to simulate a system error}  procedure Tiwform1.iwbutton1click (sender:tobject);  begin Release; End;

Iwerror.html comparison before and after the modification:
I figured out a way to pull out the iwerror.html source file, from which you can learn more about the template problem:<! DOCTYPE html><ptml><pead><meta http-equiv= "Content-type" content= "text/html; Charset=utf-8 "><meta http-equiv=" Expires "content="-1 "><meta http-equiv=" pragma "content=" No-cache " ><meta http-equiv= "Cache-control" content= "No-cache" ><meta name= "GENERATOR" content= "IntraWeb" >< Style type= "Text/css" >body, Div, span, object, IFRAME, H1, H2, H3, H4, H5, H6, p, blockquote, pre {border:0 None;margi N:0;padding:0;vertical-align:baseline;}. Iw-body {background-color: {%bodybackcolor%};color: {%bodytextcolor%};font-family:verdana, Geneva, Sans-serif;}. Iw-header-green{padding-top:20px;padding-left:20px;padding-bottom:10px;font-size:x-large;color: {% headertextcolor%}; Background-color: {%fromcolor%}; Background-image:-webkit-gradient (linear, left top, left bottom, from ({%fromcolor%}), to ({%tocolor%})); Background-image:-webkit-linear-gradient (Top, {%fromcolor%}, {%tocolor%}); Background-image:-moz-linear-gradient (Top, {%fromcolor%}, {%Tocolor%}); Background-image:-ms-linear-gradient (Top, {%fromcolor%}, {%tocolor%}); Background-image:-o-linear-gradient (Top, {%fromcolor%}, {%tocolor%}); Background-image:linear-gradient (to bottom, {%fromcolor%}, {%tocolor%}); filter:progid:d XImageTransform.Microsoft.gradient (gradienttype=0,startcolorstr={%fromcolor%}, endcolorstr={%tocolor%});}. iw-header-subtitle {font-size:large;padding-left:20px;}. Iw-headerline {background-color: {%fromcolor%}; height:5px;}. iw-content {padding:10px;font-size:small;}. Iw-restart {padding:10px;font-size:small;}. iw-stacktrace {padding:10px;font-size:12px;font-family: "Trebuchet MS", Arial, Helvetica, sans-serif}</style> <title>{%appname%}</title></pead><body class= "Iw-body" ><div class= "Iw-header-green" ><strong>application error</strong><br> <span class= "Iw-header-subtitle" >An unhandled Application error has occured within &LT;STRONG&GT;{%APPNAME%}&LT;/STRONG&GT;&LT;/SPAN&GT;&LT;BR&GT;&LT;/div><div class= "Iw-headerline" > </div><div class= "iw-content" > <strong>error message: </strong> {%content%} <br><br> {%exceptionspecific%} <br><br><pr></div> <div class= "Iw-restart" > "Order to restart the application, click the link below: <br><br> <a href= "{%appaddress%}$/start" >click here to restart <b>{%APPNAME%}</b></a> <br>< br> Please note this depending on the actual exception that occured, restarting the application might isn't be Possibl E. If this is the case, please report the error message to the administrator. <br><br><pr></div><span class= "Iw-content" ><strong>{%errordetails_title%} </strong></span><div class= "Iw-stacktrace" >{%ERRORDETAILS_CONTENT%}</div></body> </ptml>
Inline tags for iwshowmessage.html (default information Template) and iwexception.html (default exception template) are: {%textmessage%}, {%butnok%}

Inline tags for iwerror.html (default error template) are: {%content%}, {%appname%}, {%appid%}, {%atozedlogo%}, {%intraweblogo%}, {%appaddress%}, {% exceptionspecific%}

Latest references to templates: http://www.atozed.com/intraweb/docs/Layout/HTMLTemplates.aspx

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.