Managing Content
From ResourceSpace Documentation Wiki
Site text entries can use HTML line breaks to break longer text entries into paragraphs. Insert <br /> for a line break.
Email Templates
Subversion notes (this is a development feature):
To test email templating, set
$use_phpmailer=true;
in config.php. This will enable an html (multipart/alternative) version of ResourceSpace emails, which are normally in plain text only.
This also allows for the use of templates in Manage Content, which allow significant freedom in altering or adding content to the design of the emails. (no default templates are available yet).
There are several types of variable available to test:
- variables made available explicitly in the code, such as [url] and [resourcename] here.
- variables from the language files. [lang_hasemailedyouaresource] == $lang['hasemailedyouaresource']
- variables from site_text table (text from Manage Content). ex. [text_footer]
- [embed_thumbnail] is a special case designed for resource emails, and is hardcoded.
- [img_/path/to/image] provides the ability to attach inline imagery
- [attach_/path/to/document] provides the ability to attach documents
Example Templates:
$site_text_custom_create=true;
In Manage Content, add a new site text entry with page "all" and name "emailresource". Enter the following text:
[img_../gfx/whitegry/titles/title.gif]<br> [fromusername] [lang_hasemailedyouaresource]<br><br> [message]<br><br> <a href="[url]">[embed_thumbnail]</a><br><br> [lang_clicktoviewresource]<br><a href="[url]">[resourcename] - [url]</a><br><br> [text_footer]
In Manage Content, add a new site text entry with page "all" and name "emailnewresearchrequestwaiting". Enter the following text:
[img_../gfx/whitegry/titles/title.gif]<br> [username] ([userfullname] - [useremail]) [lang_haspostedresearchrequest]<br><br> [lang_nameofproject]:[name]<br><br> [lang_descriptionofproject]:[description]<br><br> [lang_deadline]:[deadline]<br><br> [lang_contacttelephone]:[contact]<br><br> [lang_finaluse]: [finaluse]<br><br> [lang_shaperequired]: [shape]<br><br> [lang_noresourcesrequired]: [noresources]<br><br> <a href="[url]">[url]</a><br><br> <a href="[teamresearchurl]">[teamresearchurl]</a><br><br> [text_footer]
In Manage Content, add a new site text entry with page "all" and name "emailresearchrequestassigned". Enter the following text:
[img_../gfx/whitegry/titles/title.gif]<br> [lang_researchrequestassignedmessage]<br><br> [text_footer]
In Manage Content, add a new site text entry with page "all" and name "emailresearchrequestcomplete". Enter the following text:
[img_../gfx/whitegry/titles/title.gif]<br> [lang_researchrequestcompletemessage] <br><br> [lang_clicklinkviewcollection] <br><br> <a href="[url]">[url]</a><br><br> [text_footer]
In Manage Content, add a new site text entry with page "all" and name "emailnotifyresourcessubmitted". Enter the following text:
[img_../gfx/whitegry/titles/title.gif]<br> [lang_userresourcessubmitted] [list] <br> [lang_viewalluserpending] <br><br> <a href="[url]">[url]</a><br><br> [text_footer]
In Manage Content, add a new site text entry with page "all" and name "emailnotifyresourcesunsubmitted". Enter the following text:
[img_../gfx/whitegry/titles/title.gif]<br> [lang_userresourcesunsubmitted] [list] <br> [lang_viewalluserpending] <br><br> <a href="[url]">[url]</a><br><br> [text_footer]
In Manage Content, add a new site text entry with page "all" and name "emaillogindetails". Enter the following text:
[img_../../gfx/whitegry/titles/title.gif]<br> [welcome]<br><br> [lang_newlogindetails]<br><br> [lang_username] : [username] <br><br> [lang_password] : [password]<br><br> <a href="[url]">[url]</a><br><br> [text_footer]
In Manage Content, add a new site text entry with page "all" and name "emailreminder". Enter the following text:
[img_../gfx/whitegry/titles/title.gif]<br> [lang_newlogindetails] <br><br> [lang_username] : [username] <br> [lang_password] : [password] <br><br> <a href="[url]">[url]</a><br><br> [text_footer]
In Manage Content, add a new site text entry with page "all" and name "emailresourcerequest". Enter the following text:
[img_../gfx/whitegry/titles/title.gif]<br> [lang_username] : [username] <br> [list] <br> [details]<br><br> [lang_clicktoviewresource] <br><br> <a href="[url]">[url]</a>
In Manage Content, add a new site text entry with page "all" and name "emailcollection". Enter the following text:
[img_../gfx/whitegry/titles/title.gif]<br> [fromusername] [lang_emailcollectionmessage] <br><br> [lang_message] : [message]<br><br> [lang_clicklinkviewcollection] [list]
In Manage Content, add a new site text entry with page "all" and name "emailbulk". Enter the following text:
[img_../../gfx/whitegry/titles/title.gif]<br><br> [text]<br><br> [text_footer]
