Home Download Documentation Prerequisites Installation Users Manual Tags+Attributes TODO Known Issues FAQ |
Users ManualThis document assumes you have set up a cruisedit demo as described by the installation manual. If your installation does differ, you have to read paths and URLs given here accordingly.Viewing PagesThere is nothing to say about viewing pages - it should just work. Maybe you did enter a URL for which no document was provided. Try http://localhost:8080/CruisEdit.Entering Edit ModeThere are two ways to start edit mode:
You can easily edit its contents and apply the changes by the "Commit" button. Full Edit ModeIf you choose the "Full Edit" button in the example shown in the section above, you do enter the full edit screen for that document. Here you have a bigger HTML form field for editing the document itself and additionally a header for changing the meta information for the document like its path, name, locale, mime-type etc.Basic idea of includingIncluding documentsThe base function of CruisEdit is to compose a html document by including several documents into one. For this, you do edit the main document as described above and where you want to include another document, you use the syntax<?ce INCLUDE="/CruisEdit/sample.html"?>where "/CruisEdit/sample.html" is the (virtual) path of the included document. Using LayoutsTo have several documents with the same surrounding (e.g. banner, menu, footer, ...) there is the concept of "layouts" in CruisEdit. You can either specify a layout in the document meta information (using full edit mode) or in the INCLUDE tag with the attribute LAYOUT:<?ce INCLUDE="/CruisEdit/index.html" LAYOUT="layout/cruisedit" ?>Layouts are CruisEdit documents with mime-type text/x-ce-layout that can be edited like any text/html documents. Layout documents have to contain the tag <?ce CONTENT ?>to indicate where to place the respecting document inside the layout. The layout of a document that is referred to by the URL will contain e.g. the HTML header and body tags, the CONTENT tag will be inside the BODY element. The layout of an included document will contain some decorations, like a box made up by html table tags and colours. A very basic example for the first kind of layout would be: <HEAD>As a general advice, you should specify the layout in the meta information only for the first kind, not for included documents. The layout of included documents vary with the place where it is included and therefore the layout is better specified in the INCLUDE tag. Furthermore, to ease the dual use of text in base documents on the one hand and as included (side box) text on the other hand, the use of layouts referred to by the documents meta information may be ignored in future versions of CruisEdit when including documents. For more details on the tags, more tags and attributes and more sophisticated use of them see the section "Tags and Attributes". Retrieving a Static CopyMy recommondation for publishing your webpages is to retrieve a static copy by wget and put this on your web server. If you use the demo setup described in the installation documentation, the appropriate wget line would be:
You'll get a subdirectory
Provided by usr-local
|