In Consolo’s Media Archive the editor can find all file types that are not actual web pages. This includes images, documents, movies, soundfiles, zip-archives etc. In Consolo, there are no limits to which file types can be published. As a developer, you decide exactly what html code should be included when an editor drags-and-drops a certain file type onto a page.
In Consolo’s Configuration Tool, you can define up to six different media archives. Under the tab “Client Configuration” and the option “Media Archive” you will find six different archives you can switch on and off with the check-box “Activated”. You can also change the caption of the menu option in Consolo, what folder on the server to be used and what text to be displayed next to an icon in the editor.
Under the menu option “File Types” under “Media Archive” you can define exactly what html code that will be inserted when a certain file type is dragged onto a page. If an editor drops a file of the type .pdf on a page, you can decide if a certain div should be created around the link, what icon will be used etc. Or if a .mov file is dropped on a page, you can decide if a QuickTime-player should be embedden in the page or if a link should be created.
In the field for every file type, you can besides standard html code, define three code words. Consolo will replace these code words with values for this specific file:
%filepath% |
The link to the file, as a complete URL. |
%filename% |
The file name without a seearch path. |
%title% |
Consolo asks the user for a title when the object is inserted. |
Using Elements and Parts you can create a plethora of ready-to-use page elements, the editor may use on a page. Besides the form elements (which are included as examples), you may want to create elements such as info-boxes, special buttons, side columns, contact forms etc. You imagination is the limit.
In Consolo’s Configuration Tool, you can define an unlimited number of tabs, each of which contains a web page. For every tab, you enter a name to be shown on the tab, and a URL to the web page containing the elements.
You should observe that when you are using page elements containing many objects, you should place a div around the whole element. This makes it so much easier for the editor when dragging the element onto a page.
For more information and help, see the example Creating a Contact Form »