Ticket #71 (new New Feature)
Opened 3 years ago
documents with parameters/variables
| Reported by: | ja@… | Owned by: | |
|---|---|---|---|
| Priority: | Minor | Milestone: | |
| Component: | Version: | ||
| Keywords: | Cc: |
Description
[jira2trac import : issue created on October 25, 2004 6:39:36 AM CEST http://issues.cocoondev.org/browse/DSY-71 ]
A business case (or at least: the requirement for a solution to be able to actually do it) which seems to occur in a dms/cms quite often is the following:
Create a document where, in some parts of the document, you put certain variables. If you then link to this document with specific parameters, the variables are filled in and to the outside world your "variable document" seems like a normal document, but parametrized to its own specific needs.
An example could be a "procedure" document like:
1) copy the files to $MYSOURCEDIR
2) encrypt them
3) copy the encrypted files to $MYTARGETDIR
Now suppose someone wants to create a procedure which needs to include the company's own way of encrypting. That person can then include our parametrizable procedure, provide it with parameters and hence be able to have something in his/her document like:
..... do stuff.........
1) copy the files to /tmp/crypt
2) encrypt them
3) copy the encrypted files to /usr/local/myapp-1.0
..... do more stuff......
Another document can also link to the same procedure document but provide other parameters.