Export to an adjusted format serves for possibility of creation of a content in a format simple CMS on a file or for export to the necessary (individual) format for the user. As it is applied to export of the project to separate text files.
an export Example in HTML files
The window consists from the manager of templates and two вкладок: «Articles and categories» and «Menu».
Tab of Article and a category
This вкладка to serve for adjustment of properties of a template and parametres of formation of files of articles and categories. In the editor to be entered the file template to which it will export. On a place of key values are left специальные variables which at export will be will be replaced with values corresponding to them.
Перечень variables
- {TITLE} — article Name
- {ALT_NAME} — Alt_nejm of article
- {KEYWORDS} — мета кейвордс
- {DESCRIPTION} — мета дескрипшн
- {TEXT} — article text
- {TEXT:NN} — the first NN article symbols
- {TEXT_MORE} — the text which follows to тега <! — more — >
- {RAND (FROM, TO)} — рандомное number in a range from FROM to TO;
- {TAGS} — таги
- {DATE} — date
- {NOSPLIT} — attribute nosplit (можна to use as you want, in Zebrum Lite it is used for a designation of articles which do not need division into pages). Accepts value 1 — if it is included, 0 — if it is switched off.
- {URL} — a way to article in a format/kategori/statja.html
- {URL-NOCAT} — a way to article without a category
- {URL-NOCAT-EXT} — a way to article without a category and file expansion
- {URL-CAT} — a way without article (i.e. a way to кореню categories)
- {CAT-NAME} — the category name in which is article
- {CAT-ALT-NAME} — Alt_name categories in which there is article
- {LEVEL} — level of an enclosure of article
- {FORMAT_DATE (NNN)} — Formatted date. NNN — a date format (the description more low)
- {MICROTIME} — a microtime
- {COUNT (NN)} — the counter which begins with NN
- {GET_MACROS (NAME)} — extends from the text block contents [NAME]… [/NAME] (NAME can be changed to any other name of the block)
- {ADDIT_FIELD (NAME)} — value доп. Fields with name NAME
As there is 1 block:
[POST]… [/POST] — the block a designation of a place of generation of posts. A cycle on posts (works only with export to 1 file).
Value of options:
- the profile Name — Names for an active profile;
- UTF-8 — to keep in coding UTF-8
- Type preservation of articles
- Each article in a separate file — each article will be kept in a separate file which will bear article name in translit. In need of the necessary hierarchy folders will be created and to be added the list of articles of a category in a body of the category;
- All articles in one file — all articles in one file are divided by the specified divider;
- Pictures to keep in a folder — a folder for pictures;
- the Forbidden symbols in ALT_NAME — the list of symbols which are forbidden for using in names of files;
- to Replace on — on what to replace the forbidden symbols;
- the Template of a name of a file — a template on which names of files (only for preservation in separate files) will be created. The list of used macroes in the contextual menu
- the Template of references — a template on which references to internal pages will be created. The list of used macroes in the contextual menu
Tab of the Menu
This вкладка is responsible for formations of files of the menu if there is such necessity.
the Adjusted format (вкладка the menu)
As well as in the first case there is an editor of a template in whom special variables will then be replaced with the necessary. The list of these variables on the same page, as in the first case. Only two options are specified: a name and a format of a generated file.
Перечень variables
- {TITLE} — the category/article Name
- {ALT_NAME} — Alt_nejm of a category/article
- {URL} — урл to a category/article (the type урла meanwhile is not adjusted and looks like: imja_kategorii\imja_posta.tip_fajla)
- {ID} — the category/article identifier
- {KEYWORDS} — мета кейвордс
- {DESCRIPTION} — мета дескрипшн
- {COUNT (NN)} — the counter which begins with NN
- {TAGS} — таги
- {PARENT} — a name of the parent
- {PARENT_ALT_NAME} — alt_name the parent
- {TEXT} — article text
- {TEXT:NN} — the first NN article symbols
- {TEXT_MORE} — the text which follows to тега <! — more — >
- {LEVEL} — level of an enclosure of article
- {NOSPLIT} — deduces 1 if the parametre nosplit is activated and 0 if is not activated
- {MICROTIME} — a microtime
- {DATE} — date
- {RAND (FROM, TO)} — a random number in a range from FROM to TO
- {FORMAT_DATE (NNN)} — Formatted date. NNN — a date format (the description more low)
- {GET_MACROS (NAME)} — extends from the text block contents [NAME]… [/NAME] (NAME can be changed to any other name of the block)
As there are 2 blocks:
1.
[MENU]… [/MENU] — the block a designation of a place of generation of the menu. A cycle on categories;
2.
[POST]… [/POST] — the block a designation of a place of generation of posts. A cycle on posts.