Developer Tasks
The following articles will guide you as a developer in your tasks.
- Add thumbnails and descriptions to your templates
The dialog used for selecting templates features custom descriptions and thumbnails for each template. To add a description or thumbnail, just add the following methods to your tem...
- Broken Link (404) management
Finding broken links on your website can be tough. This customized errorpage will support you in finding links. As soon as a broken link is encountered by anyone, the errorpage wil...
- Create a document from script code
Creating a document from script code is quite simple, the only thing to be careful with is not to lock yourself out of the document as it inherits permissions from its parent. ...
- Create A Module
A module is a logical and physical group of templates, scriplets, settings and pages. Modules allow you to control the way it installs when an editor decides to use the module and ...
- Creating custom fields
ScriptServer allows you to create your own field editing. This means that you can completely change the way a field is being edited and perceived. To do this, you will need to ind...
- Enabling the activeX editor
When creating your templates, you can use the syntax highlighted activeX control instead of just a textarea. To do this you will need to set up your webbrowser to trust the domain ...
- Event triggers
In the 2.31 release of Dimac ScriptServer, a notification system based on scriptlets is introduced. In short, certain system scripts, such as editors, will call methods ...
- Highligligt a word in text
Highlight a word on a page can be very useful in some cases. An example is when the word has been searched for though the built in search engine. The user clicks on a link to the d...
- Modifying security settings from script
This is a shortdescription on how you can work with the security settings of a document through script. The model is as follows: A document has an Access Control List (ACL)An ACL...
- Pushing code from dev sites
This document describes some tools to use when moving templates and scripts form one web site to another. Note that these tools will not transfer field content. The tools presente...
- Site Stylesheet when editing
When editing text fields, the stylesheets you create for your website is not automatically applied. To counter this, follow these steps: Copy your stylesheet document to a new d...
- Sort fields into tabs when in edit mode
When a template contains a lot of fields, it is possible to sort them into tabs, making the edit page look like this This is accomplished by adding a setting to the fields in th...
- Sorting document lists
Sorting documents is easily done with the help of a nifty little tool called Sorter. It is a COM object which sorts a collection with the default property as sort value. However, i...
- Using ObjectStore Search
This example shows how you can do an advanced search function. If you use the standard Index object the search code would basically look like this: Index.Search(query,searchRootDo...
- Using ownership
The security model of ScriptServer features a concept called ownership. This means that when setting security permissions on a document (A), you can also assign one user as the own...
- Using Special Documents
Dimac ScriptServer makes frequent use of what is called special documents. These are documents defined in each site's configuration and can be accessed through a simple command. I...
- Using tabs
You can use built in scriptlets to generate advanced HTML controls, for example tabs, trees and so forth. The attached file is an example on how to create tabs.
- Using the Cache Object
With TradePoint 3.1 came the Cache object which can be used to optimize your site extensively. To allow easy interaction with the cache object, we also supply a couple of helpful s...
- Working with accounts
Here are some functions you can use to create, update and delete accounts provided by the db account provide. Create an account<%function createAnAccount( usr...
