Home Download Documentation Prerequisites Installation Users Manual Tags+Attributes TODO Known Issues FAQ |
Tags and AttributesCruisEdit Tags are keywords included in <?ce and ?>. Some of them have attributes like HTML tags have. Additional some tags do have values by themselves (i.e. not only their attributes).The ABSTRACT tagInserts the documents abstract here into the layoutContext: Layout Sample: <?ce ABSTRACT ?> The AUTHOR tagInserts the author of the document. When used in a layout, it refers to the author of the respective documentContext:Layout, document. Sample: : <?ce CONTENT ?> <HR> <ADDRESS>Contributed by: <?ce AUTHOR ?></ADDRESS> </BODY> </HTML> The CONTENT tagInserts the document into the layout hereContext: Layout Sample: <?ce CONTENT ?> The DATE_CREATED tagInserts the date and time of the documents creation. When used in a layout, it refers to the creation time of the respective documentContext:Layout, document. Sample: <?ce CONTENT ?> <HR> <ADDRESS>Created: <?ce DATE_CREATED ?></ADDRESS> The DATE_MODIFIED tagInserts the date and time of the last modification. When used in a layout, it refers to the modification time of the respective documentContext:Layout, document. Sample: <?ce CONTENT ?> <HR> <ADDRESS>Last modified: <?ce DATE_MODIFIED ?></ADDRESS> The EDIT tagInserts additional links when in edit mode. When used in a layout, the links denoted by "content" refer to the respective content document.Value and Attributes:
<?ce EDIT LINK="..." LABEL="..." ?> The HEADER tagIncludes some HTML elements that have to be placed in the HTML page header This won't affect the information displayed to the web sites visitor, but transports some meta information, e.g. to set up links in the browsers navigation bar in edit mode.Sample: <HTML> <HEAD> <TITLE>Sample Page</TITLE> <?ce HEADER ?> </HEAD> <BODY> : The ICONLINK tagInserts an icon with a link to the corresponding documentValue and Attributes:
<?ce ICONLINK="/foo/bar.html" ?>will be replaced by provided "Foo Bar" is the name of the document /foo/bar.html<A HREF="/foo/bar.html"> <IMG SRC="/foo/bar.html_i.jpg" ALT="[Bild:Foo Bar]" TITLE="Foo Bar"> </A> The INCLUDE tagIncludes other documentsSample: <?ce INCLUDE="/CruisEdit/index.html" LAYOUT="layout/cruisedit" EDIT_ROWS="20" EDIT_COLS="80" ?>Value and Attributes:
The INCLUDELIST tag (<= CE 0.5.6)In some cases, you have a varying number of small documents that you would like to inlcude all in the main page without editing the main page each time you add or remove one of the small documents. In this case, you should give all the included documents a virtual path within the same virtual directory, e.g. /CruisEdit/sample.html, /CruisEdit/sample1.html and . To include them, instead of the syntax shown above you use<?ce INCLUDELIST="/CruisEdit/%.html"?>If you want only the 4 most recent documents, you can add the number 4 separated by a comma: <?ce INCLUDELIST="/CruisEdit/%.html,4"?>(This changes from version 0.6.5 to 0.6.6) The INCLUDELIST tag (>= CE 0.6.6)In some cases, you have a varying number of small documents that you would like to inlcude all in the main page without editing the main page each time you add or remove one of the small documents. In this case, you should give all the included documents a virtual path within the same virtual directory, e.g. /CruisEdit/sample.html, /CruisEdit/sample1.html and . To include them, use the INCLUDELIST tag.Value and Attributes:
<?ce INCLUDELIST="/CruisEdit/%.html" MAX="4" ?> The LAYOUT tagLayout class to be used. Currently this is just a prefix or postfix to or a replacement of the layout path. This may either become more sophisticated in the future or be dropped.Value and Attributes:
<?ce LAYOUT CLASS="box/" ?>will prepend a box/ to the layout path. Sample 2: <?ce LAYOUT CLASS=".box" ?>will append a .box to the layout "filename". The MODULE tagInvokes an module and inserts the output hereValue and Attributes:
<?ce MODULE="calendar" YEAR="2006"?>To get an idea, how modules may be written, have a look at library/ce_mod_sample.inc in the CruisEdit distribution. [ Read the source, Luke ;-) ] The NAME tagInserts the name of the document. When used in a layout, it refers to the name of the respective layout.Sample: <H2><?ce NAME ?></H2> <?ce CONTENT ?> The REF tagAdds $ce_prefix (or $ce_edit_prefix respectivly) from config.php to the documents path, thus building the full URL path of the document referenced by the CruisEdit internal path.Value and Attributes:
<?ce REF="/doc/index.html" ?> The TITLE tagInserts the name of the document referred to by the URL.Sample: <HTML> <HEAD> <TITLE><?ce TITLE ?></TITLE> </HEAD> <BODY> : The URL tagBuilds the URL path of the http request to show the page currently displayed.Sample: <?ce URL ?> | |