Wiki Documentation
WikiDocumentationBack to Snip <-- Previous Change | Next Change -->
| Diff Summary | |||||
|---|---|---|---|---|---|
| Title | |||||
| Date | 2007-06-16 10:12:04 | 2007-06-16 11:20:25 | |||
| Editor | Herbert Poul | Herbert Poul | |||
| Tags | |||||
| 2007-06-16 10:12:04 by Herbert Poul | 2007-06-16 11:20:25 by Herbert Poul | ||||
|---|---|---|---|---|---|
| 87 | 87 | ||||
| 88 | - url (required): The URL to the file to include | 88 | - url (required): The URL to the file to include | ||
| 89 | - start (optional): Some value which is used to de | 89 | - start (optional): Some value which is used to de | ||
| > | termine at which position in the file to start the | > | termine at which position in the file to start the | ||
| > | inclusion. (The line containing the given word wi | > | inclusion. (The line containing the given word wi | ||
| > | ll not be included) | > | ll not be included) | ||
| 90 | - end (optional): Some value which is used to dete | 90 | - end (optional): Some value which is used to dete | ||
| > | rmine at which position to stop the inclusion. | > | rmine at which position to stop the inclusion. | ||
| 91 | 91 | ||||
| t | t | 92 | ### Include Template Macro | ||
| 93 | |||||
| 94 | Allows a user to include arbitrary HTML by includi | ||||
| > | ng a template from djang's templating system. (Ie. | ||||
| > | only an admin can create HTML content. - or anyon | ||||
| > | e who has access to the template directories, or w | ||||
| > | hereever the templates are stored.) | ||||
| 95 | |||||
| 96 | Example Usage: | ||||
| 97 | |||||
| 98 | {includetemplate templateName=mydir/sometempla | ||||
| > | te.html} | ||||
| 99 | |||||
| 100 | #### Parameters | ||||
| 101 | |||||
| 102 | - templateName (required): The name of the templat | ||||
| > | e to include. | ||||
| 103 | |||||
| 104 | All additional parameters will be put into the con | ||||
| > | text of the template as 'params'. | ||||
| 92 | 105 | ||||
| 93 | ### Image Macro | 106 | ### Image Macro | ||
| 94 | 107 | ||||
| 95 | Administrators can add attachments to wiki snips. | 108 | Administrators can add attachments to wiki snips. | ||
| > | The Image macro allows to add such attachments as | > | The Image macro allows to add such attachments as | ||
| > | images into the wiki snip. | > | images into the wiki snip. | ||
| 96 | 109 | ||||
Powered by Sphene Community Tools
