Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
TWiki Templates | ||||||||
Line: 273 to 273 | ||||||||
</form> | ||||||||
Changed: | ||||||||
< < | See TWikiScripts#edit for details of the parameters that the edit script understands. | |||||||
> > | ![]() save script instead of the edit script in the form action. When you specify the save script you have to use the "post" method. Example:
<form name="new" action="%SCRIPTURLPATH{save}%/Sandbox/" method="post"> ... </form> ![]() edit and save scripts understand many more parameters, see TWikiScripts#edit and TWikiScripts#save for details. | |||||||
![]() %WIKIUSERNAME% and %DATE% variables in your topic templates to include the signature of the person creating a new topic. The variables are expanded into fixed text when a new topic is created. The standard signature is: -- %WIKIUSERNAME% - %DATE% | ||||||||
Line: 282 to 289 | ||||||||
When you use TWikiVariables such as %PUBURL% and %PUBURLPATH% in templates you should be aware that using %PUBURL% instead of %PUBURLPATH% puts absolute URLs in the produced HTML. This means that when a user saves a TWiki page in HTML and emails the file to someone outside a company firewall, the receiver has a severe problem viewing it. It is therefore recommended always to use the %PUBURLPATH% to refer to images, CSS, Javascript files etc so links become relative. This way browsers just give up right away and show a usable html file. | ||||||||
Changed: | ||||||||
< < | Related Topics: TWikiSkins, DeveloperDocumentationCategory, AdminDocumentationCategory | |||||||
> > | Related Topics: TWikiSkins, TWikiForms, TWikiScripts, DeveloperDocumentationCategory, AdminDocumentationCategory | |||||||
-- Contributors: TWiki:Main.PeterThoeny![]() ![]() ![]() ![]() ![]() |