|
|||||||||
|
|||||||||
![]() |
![]() |
Documentation >> ResourcesResourcesTable of ContentsWhat are Resources?Resources are primarily a convenience feature. They offer a way to type a very short piece of text which will automatically be replaced with a longer piece of text when a page is served. There are a few different kinds of resource, including Conditional, Image, Link, and Text. Each has different purposes and uses, but they're all used in the same way. One of the largest benefits of resources is that they are only "expanded" when a page is being viewed. This means that if you edit your resource, the changes will immediately be shown everywhere that the resource is used. Resources can be used anywhere in your Conversant conversation, including messages, templates, macro attributes, and even in other resources. Every resource has a name, which is the "key" to using it in a template. The name can can be any string of text which is less than 255 characters long, but it is generally recommended that names be kept short. Resource names can not contain the vertical pipe character. Resource names are not case sensitive, so a resource named "my favorite link" is exactly the same as one named "My Favorite Link". Using ResourcesUse a resource by typing its name with a "vertical pipe" at each end, like this: |My Favorite Link|. If your conversation contains a resource with the name between the pipes, then the entire key (including the pipes, of course) will all be replaced with the value of that resource. (For future reference, note that when discussing resources it is said that the pipe is the "resource delimiter".) On most keyboards, the pipe character is typed with a shift-\ (shift-backslash). Some keyboards show a single vertical line for the pipe, and others show a double vertical line with one above the other (in fact the same is true for fonts). ![]() ![]() Creating and Editing ResourcesResources can be created in two ways: automatically, and manually. A link resource is created automatically when a message is published (ie "bound to a URL"). In this case, the new resource will be named according to the subject of the message, and will point to the new, published page. Note that if there is already a resource with the same name, a new resource will not be created. Resources are created and edited manually through the Resource Editor portion of the admin interface. Access the resource editor by following these steps:
To edit the value of an existing resource, click on its name in the list. To create a new resource, enter the name of the resource in the form at the top ("Add Resource"), choose a resource type from the list, and then click on "Add New Resource". The page that loads will show the values for a new, empty resource of the type you chose. Enter the values, and click the Save Changes button at the bottom of the form. Resource TypesThere are four different resource types, which provide four separate-but-related features.
|
![]() |
||||||