There's only one real setting for the Single Entry Pages to configure: the format for naming the files generated by this template.
As you publish each entry in your database, each page published will need a separate name. WebCrimson simplifies this process by automatically creating a unique filename for each page generated by this template, according to the settings you put in this field.
For example, each entry is given a unique ID in the WebCrimson database. You can use this unique ID in your filename by putting the text "%u" in this field.
So for example, if you put in:
That would generate files with names like this:
You can also use text together with variables. So for example, this text:
would generate file names like this:
- press1421.html
- press1391.html
There's a whole range of variables available to use in this field, including:
- %t
- the data type
- EX: Weblogs, PressReleases, Jobs, Articles, Companies...
- %p
- the name you gave to your template
- EX: Fronttemplate
- %d
- the file's publication date
- EX: 20020820
- %n
- the text of your primary field.
- For example, the primary field for a Weblog is the Entry field.
- For an Article, it's the Title field.
- A maximum of 50 characters will be used from the field, with spaces pulled out.
You can combine the variables in this field.
For example, you could combine the date and the unique ID tag like this:
This would generate file names like:
- 20020820-1421.html
- 20020817-1391.html
One final note: if a user specifies a file name in the database, that file name will automatically override the automatic filenames generated by this field.