### Install and Start FirstSpirit Server
Source: https://docs.e-spirit.com/odfs/edocs/inst/quick-guide-tes/installation/index.html
Use this command to install and start the FirstSpirit service on Windows.
```bash
fs-server installstart
```
--------------------------------
### Windows Server Installation and Start Commands
Source: https://docs.e-spirit.com/odfs/edocs/modd/server-installa/index-2.html
Commands for installing and starting the FirstSpirit server as a Windows service.
```batch
~FS\bin\fs-server install
~FS\bin\fs-server start
```
--------------------------------
### Install FirstSpirit Server
Source: https://docs.e-spirit.com/odfs/edocs/admi/firstspirit-ser/unix/index.html
Installs the FirstSpirit Server service. Use 'installrun' to also start the server immediately after installation.
```bash
~FS/bin/fs-server install
```
```bash
~FS/bin/fs-server installrun
```
--------------------------------
### Example Installation Archive Filename
Source: https://docs.e-spirit.com/odfs/edocs/inst/installing-firs/index.html
The filename of the FirstSpirit installation archive includes a version number.
```text
fs-install-1.0.0.tar.gz
```
--------------------------------
### Get List Information
Source: https://docs.e-spirit.com/odfs/template-develo/template-syntax/system-objects/list/index.html
This example demonstrates how to retrieve and display the total number of list elements, the starting value for counting, and the value of the last list element using the #list system object's count, start, and count2 methods.
```html
The list contains $CMS_VALUE(#list.count)$ elements.
The counting begins with the value $CMS_VALUE(#list.start)$.
The value of the last list element is $CMS_VALUE(#list.count2)$.
```
--------------------------------
### Install and Start FirstSpirit Server as Windows Service
Source: https://docs.e-spirit.com/odfs/edocs/admi/firstspirit-ser/windows/index.html
Installs and starts the FirstSpirit Server as a Windows system service. Administrator permissions are required. If the service name has changed, uninstall the old service first using 'remove' before installing the new one.
```bash
~FS\bin\fs-server installstart
```
--------------------------------
### Specify Launcher Installation Directory
Source: https://docs.e-spirit.com/odfs/edocs/inst/starting-applic/index.html
Optionally specify a custom installation folder during silent installation. This example uses the default value.
```bash
-dir %LOCALAPPDATA%\Programs\FSLauncher
```
--------------------------------
### installFeature Method
Source: https://docs.e-spirit.com/odfs/access/index-files/index-9.html
Starts a server-side feature installation process for the given feature file or options.
```APIDOC
## Method installFeature(FeatureFile, LayerMapper)
### Description
Starts a server side feature installation process for the given feature file.
### Interface
de.espirit.firstspirit.feature.FeatureInstallAgent
```
```APIDOC
## Method installFeature(FeatureInstallOptions)
### Description
Starts a server side feature installation process for the given `FeatureInstallOptions`.
### Interface
de.espirit.firstspirit.feature.FeatureInstallAgent
```
--------------------------------
### Example of Installation Order for Archive Restoration
Source: https://docs.e-spirit.com/odfs/edocs/admi/firstspirit-ser/elemente-menuel/projekt/index.html
Illustrates the correct sequence for installing archive files to restore a specific element, ensuring version history integrity. This is crucial when subsequent archives have been created after the target archive.
```text
1. Installation der Archivdatei vom 30.03.2014, 12:00
2. Installation der Archivdatei vom 23.03.2014, 12:00
3. Installation der Archivdatei vom 16.03.2014, 12:00
4. Installation der Archivdatei vom 09.03.2014, 12:01
```
--------------------------------
### Client Home Directory Example (Windows)
Source: https://docs.e-spirit.com/odfs/edocs/admi/firstspirit-ser/configuration-f/firstspirit-ser/area-server/index.html
Example of setting the client home directory for Windows workstations.
```properties
CLIENT_HOME_DIR_WINDOWS=C:/.test
```
--------------------------------
### Example Log File Name
Source: https://docs.e-spirit.com/odfs/edocs/admi/firstspirit-ser/integration-int/logging-firstsp/index.html
Provides a concrete example of a FirstSpirit web application log file name, based on a local installation.
```text
fs-webapp-localhost-1088.log
```
--------------------------------
### Quickstart - Interface
Source: https://docs.e-spirit.com/odfs/access/index-files/index-17.html
Represents a quickstart item that provides a convenient way to open SiteArchitect or ContentCreator with a predefined link.
```APIDOC
## Quickstart Interface
### Description
A quickstart item provides a convenient way for opening SiteArchitect or ContentCreator with a predefined link on the start page.
### Type
Interface
### Package
de.espirit.firstspirit.access.admin
```
--------------------------------
### Placeholder for Installation Archive Version
Source: https://docs.e-spirit.com/odfs/edocs/inst/installing-firs/index.html
Use this placeholder to represent the version of the installation archive during installation.
```text
fs-install-[version].tar.gz
```
--------------------------------
### Configuration Example: cxt.platform.internal-url
Source: https://docs.e-spirit.com/odfs/edocs/cxt/installation-mo/installing-modu/platform/index.html
Example of setting the internal URL for the CXT platform's accessibility.
```properties
cxt.platform.internal-url=http://localhost:8888/cxt-platform/
```
--------------------------------
### getServerConfiguration
Source: https://docs.e-spirit.com/odfs/access/index-files/index-7.html
Retrieves the current server configuration, providing access to Web Start Configuration and Quickstarts.
```APIDOC
## getServerConfiguration
### Description
Returns an instance of the current server configuration, including access to the `Web Start Configuration` and `Quickstart`s.
### Method
GET (assumed, as it retrieves information)
### Endpoint
Not specified, typically accessed via an agent interface.
### Parameters
None
### Response
- **ServerConfigurationAgent**: An instance of the server configuration agent.
```
--------------------------------
### Configuration Example: cxt.platform.external-url
Source: https://docs.e-spirit.com/odfs/edocs/cxt/installation-mo/installing-modu/platform/index.html
Example of setting the external URL for the CXT platform's accessibility in a browser.
```properties
cxt.platform.external-url=https://external/cxt-platform/
```
--------------------------------
### Example web.xml for ContentCreator Module
Source: https://docs.e-spirit.com/odfs/plug-developmen/implementation/module-architec/web-application/index.html
This web.xml example is used in the ContentCreator Example module framework. It defines basic web application information and a runtime parameter.
```xml
webclient_examples_jar
FirstSpirit WebEdit Examples
WebApp to provide all classes.
webedit.action.workflow
$WORKFLOW
```
--------------------------------
### Start FirstSpirit Server
Source: https://docs.e-spirit.com/odfs/edocs/admi/updating-firsts/manual-update/index.html
Use this command to start the FirstSpirit server after updating files.
```bash
~FS/bin/fs-server start
```
--------------------------------
### FragmentCreator Configuration Parameter Example
Source: https://docs.e-spirit.com/odfs/edocs/cxt/installation-mo/installing-modu/fragmentcreator/index.html
An example of a configuration parameter for the FragmentCreator module.
```properties
markdownEditorType=simplemde
```
--------------------------------
### Configuration Example: cxt.dataservice.url
Source: https://docs.e-spirit.com/odfs/edocs/cxt/installation-mo/installing-modu/platform/index.html
Example of configuring the address at which the DAP Bridge can be accessed.
```properties
cxt.dataservice.url=http://localhost:8080/cxt/
```
--------------------------------
### Start FirstSpirit Server (Linux/MacOS)
Source: https://docs.e-spirit.com/odfs/edocs/inst/quick-guide-tes/installation/index.html
Start the FirstSpirit server on Linux or MacOS. Use 'fs-server stop' to stop.
```bash
fs-server start
```
--------------------------------
### Example Java Client Context Menu Items Plugin
Source: https://docs.e-spirit.com/odfs/plug-developmen/sitearchitect-e/interactive-fea/context-menu-it/code-example/index.html
Implements the JavaClientContextPluginsMenuItemsPlugin interface to provide context menu items for the 'Plugins' submenu. Requires setUp, tearDown, and getItems methods.
```java
public class ExampleJavaClientContextPluginsMenuItemsPlugin implements JavaClientContextPluginsMenuItemsPlugin {
// Field definitions for objects that are required during the lifetime of a class instance.
private BaseContext _context;
@Override
public void setUp(@NotNull final BaseContext context) {
_context = context;
}
@Override
public void tearDown() {
}
@NotNull
@Override
public Collection extends JavaClientContextMenuItem> getItems() {
// Create and return an array list that includes individual context menu item objects.
return Arrays.asList(
new ExampleExecutableContextMenuItem(),
SeparatorContextMenuItem.INSTANCE,
new ExampleGroupingContextMenuItem()
);
}
/* Include one or several private static classes here that implement context menu item interfaces,
either ExecutableContextMenuItem or GroupingContextMenuItem. */
}
```
--------------------------------
### Starting the fs-cli Command Line Tool
Source: https://docs.e-spirit.com/odfs/edocs/sync/how/2-import/index-2.html
This command initiates the fs-cli tool, which is used for importing and exporting data between the FirstSpirit project and the file system. Ensure you are in the 'bin' directory of your FSDevTools installation.
```bash
D:\fs-cli\bin>fs-cli _[command]_
```
--------------------------------
### ServerManager Web Start Configuration Parameters
Source: https://docs.e-spirit.com/odfs/edocs/admi/firstspirit-ser/configuration-f/firstspirit-ser/area-web-start/index.html
These parameters configure the web start settings for the FirstSpirit ServerManager application. They correspond to user-specific web start configurations.
```properties
webstart.admin.connection=
webstart.admin.server=
webstart.admin.port=
webstart.admin.memory=
webstart.admin.compression=
webstart.admin.encryption=
webstart.admin.servletZone=
webstart.admin.usehttps=
webstart.admin.parameters=
```
--------------------------------
### getProject()
Source: https://docs.e-spirit.com/odfs/access/index-files/index-7.html
Returns the project associated with this quickstart configuration. This method is part of the Quickstart interface.
```APIDOC
## getProject()
### Description
Returns the project this quickstart configuration is related to.
### Interface
de.espirit.firstspirit.access.admin.Quickstart
```
--------------------------------
### SiteArchitect Web Start Configuration Parameters
Source: https://docs.e-spirit.com/odfs/edocs/admi/firstspirit-ser/configuration-f/firstspirit-ser/area-web-start/index.html
These parameters configure the web start settings for the FirstSpirit SiteArchitect application. They affect quick-start entries on the start page unless overridden.
```properties
webstart.client.connection=
webstart.client.server=
webstart.client.port=
webstart.client.memory=
webstart.client.compression=
webstart.client.encryption=
webstart.client.servletZone=
webstart.client.usehttps=
webstart.client.parameters=
```
--------------------------------
### Example Management Page URL
Source: https://docs.e-spirit.com/odfs/edocs/cxt/installation-mo/installing-modu/platform/index.html
An example of the full URL to access the management page on a Tomcat server.
```text
http://myServer:8080/cxt-platform/management
```
--------------------------------
### getQuickstart()
Source: https://docs.e-spirit.com/odfs/access/index-files/index-7.html
Returns the list of quickstart items configured. This method is part of the ServerConfiguration interface.
```APIDOC
## getQuickstart()
### Description
Returns the list of quickstart items configured.
### Method
N/A (Method in interface)
### Endpoint
N/A (Method in interface)
### Interface
de.espirit.firstspirit.access.ServerConfiguration
```
--------------------------------
### Full Server Configuration Example
Source: https://docs.e-spirit.com/odfs/edocs/admi/firstspirit-ser/configuration-f/firstspirit-ser/area-communicat/index.html
Demonstrates a comprehensive set of server configuration parameters, including HTTP and socket ports, base URL, and specific URL connection settings for hostname, socket port, HTTP port, and HTTPS usage.
```properties
HTTP_PORT=5000
SOCKET_PORT=5100
URL=http://myServer:8000
fs.url.hostname=aliashost
fs.url.socketport=8300
fs.url.httpport=8200
fs.url.usehttps=true
```
--------------------------------
### Example %WEBeditURL% Placeholder
Source: https://docs.e-spirit.com/odfs/templates-basic/composition-tem/workflows/state-diagram-t/properties-an-a/index.html
Provides an example of a URL generated with the %WEBeditURL% placeholder, linking to a preview page in ContentCreator.
```plaintext
http://myServer:9999/fs5webedit/?project=476656&store=pagestore&element=477196
```
--------------------------------
### getWebstartConfiguration (JavaClientQuickstart)
Source: https://docs.e-spirit.com/odfs/access/index-files/index-7.html
Returns the webstart configuration.
```APIDOC
## getWebstartConfiguration (JavaClientQuickstart)
### Description
Returns the webstart configuration.
### Method
GET
### Endpoint
`/quickstart/webstart-configuration`
### Parameters
This method does not take any parameters.
### Response
#### Success Response (200)
- **webstartConfiguration** (object) - The webstart configuration.
```
--------------------------------
### Get Sublist from Start Index
Source: https://docs.e-spirit.com/odfs/template-develo/template-syntax/data-types/list/index.html
Returns a portion of the list from a start index to the end of the list.
```java
subList(int)
```
--------------------------------
### Media Store Reference Example
Source: https://docs.e-spirit.com/odfs/template-develo/template-syntax/functions/instructions/ref/index.html
Example of using ref() to specify an identifier for a picture from the Media Store.
```html
media:"suedsee"
```
--------------------------------
### Start All Services Automatically
Source: https://docs.e-spirit.com/odfs/edocs/admi/firstspirit-ser/configuration-f/firstspirit-ser/area-misc/index.html
Configure the FirstSpirit Server to automatically start all installed services upon server startup.
```configuration
SERVICES=*
```
--------------------------------
### Get Sublist with Start and End Index
Source: https://docs.e-spirit.com/odfs/template-develo/template-syntax/data-types/list/index.html
Returns a portion of the list from a start index to an end index (exclusive).
```java
subList(int, int)
```
--------------------------------
### MySQL Database Connection Configuration Example
Source: https://docs.e-spirit.com/odfs/edocs/admi/firstspirit-ser/database-connec/data-source-con/index.html
Provides a concrete example of configuring a MySQL database connection, including driver, URL, schema, user, password, and layer class.
```properties
content1.jdbc.DRIVER=com.mysql.jdbc.Driver
content1.jdbc.URL=jdbc:mysql://localhost:3306/mydb
content1.jdbc.SCHEMA=mydb
content1.jdbc.USER=cms
content1.jdbc.PASSWORD=cms
content1.jdbc.layerclass=de.espirit.or.impl.mysql.MySQLLayer
```
--------------------------------
### Get Current Page Index
Source: https://docs.e-spirit.com/odfs/template-develo/template-syntax/system-objects/global/multiple-pages/index.html
Use #global.pageParams.index to get the index of the currently generated page. Counting starts at 0.
```html
$CMS_VALUE(#global.pageParams.index)$
```
--------------------------------
### getInstalledExportFiles
Source: https://docs.e-spirit.com/odfs/access/index-files/index-7.html
Get filename list of installed exports and backups.
```APIDOC
## getInstalledExportFiles
### Description
Get filename list of installed exports and backups.
### Method
N/A
### Endpoint
N/A
### Parameters
N/A
### Request Example
N/A
### Response
N/A
```
--------------------------------
### FS_REFERENCE Input Component Example
Source: https://docs.e-spirit.com/odfs/template-develo/forms/input-component/reference/index.html
This is a basic example of the FS_REFERENCE input component, showing its structure with language-specific information.
```XML
```
--------------------------------
### Online Help System - Input Component Examples
Source: https://docs.e-spirit.com/odfs/templates-basic/basics/tools-developer/index.html
Describes how to access and use example syntax for input components from the Online Help system, including drag-and-drop functionality.
```text
In the Forms area, one or more examples of the syntax of a valid configuration for the respective input component type are listed at the end of the page. The “for example” link takes you directly to them. These examples show how the corresponding input component is used and as many parameters as can reasonably be combined with them are illustrated. When using the Online Help system in SiteArchitect (“Help / Index” menu) or `F1`, the example that is linked via the “for example” link can be moved directly to the template using drag-and-drop and edited further there.
```
--------------------------------
### Install imagerecognition-module
Source: https://docs.e-spirit.com/odfs/template-develo/contentcreator/automatic-cropp/index.html
Non-cloud customers must install the module using this command. Ensure you replace '[version]' with the correct module version.
```bash
imagerecognition-module-[version].fsm
```
--------------------------------
### Get Release Start Element for Server Release
Source: https://docs.e-spirit.com/odfs/access/index-files/index-7.html
Retrieves the start element for a server release action. This method is specific to server-side release operations.
```java
getReleaseStartElement() - Method in interface de.espirit.firstspirit.storage.ServerReleaseOperation
Returns the start element of the server release action.
```
--------------------------------
### Get Unique Initial Letters from Names
Source: https://docs.e-spirit.com/odfs/template-develo/template-syntax/expressions/mapping-express/index.html
Use distinct() with a lambda to get the first occurrence of names starting with each letter. The result is then sorted alphabetically.
```CMS Script
$CMS_SET(_names, ["Birgit", "Andreas", "Barbara", "Emma", "Anne", "Celine"])$
```
```CMS Script
$CMS_FOR(_name, _names.distinct(x -> x.charAt(0)).sort)$
$CMS_IF(!#for.isFirst)$ | $CMS_END_IF$
$CMS_VALUE(_name.charAt(0))$
$CMS_END_FOR$
```
--------------------------------
### getWebstartConfiguration (ServerConfiguration)
Source: https://docs.e-spirit.com/odfs/access/index-files/index-7.html
Returns the webstart configuration specified by the given name.
```APIDOC
## getWebstartConfiguration (ServerConfiguration)
### Description
Returns the webstart configuration specified by the given name.
### Method
GET
### Endpoint
`/server/configuration/webstart/{name}`
### Parameters
#### Path Parameters
- **name** (string) - Required - The name of the webstart configuration.
```
--------------------------------
### Error Message for Incorrect Archive Installation Order
Source: https://docs.e-spirit.com/odfs/edocs/admi/firstspirit-ser/elemente-menuel/projekt/index.html
An example of an IllegalArgumentException that may occur if archive files are not installed in the correct chronological order, leading to inconsistencies in the version history.
```java
unknown revision id: 18, latest: 46
```
--------------------------------
### Comprehensive listConfig Example
Source: https://docs.e-spirit.com/odfs/template-develo/forms/input-component/domtable/index.html
A detailed example demonstrating various form field types (text, list, boolean, number, color) with different parameters like maxlen, upcase, and allowed characters.
```plaintext
a:Text[type=text;maxlen=30;upcase=true;allowed=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ],
b:List type[4:Capital letter|2:Numbers|6:roman numbers],
c:Checkbox[boolean],
d:Number[type=number;maxlen=3],
f:Color[color],
g:Free text
```
--------------------------------
### Configure Optional Web Start Parameters
Source: https://docs.e-spirit.com/odfs/edocs/admi/firstspirit-sta/areas-the-start/user/index.html
Store optional parameters for Web Start configuration, separated by semicolons. These parameters can override or supplement existing settings for encryption, compression, and other communication aspects.
```properties
PARAMETER1=VALUE1; PARAMETER2=VALUE2
```
--------------------------------
### Example of URL Conflict Due to Index Entry
Source: https://docs.e-spirit.com/odfs/advanced-topics/generation/advanced-urls/configuration/index.html
Illustrates how a retained 'index' entry for a start page can cause subsequent start pages to be assigned numbered URLs instead of the desired 'index.html'.
```plaintext
../Startpage/index.html
```
--------------------------------
### Getting Navigation Folder Reference
Source: https://docs.e-spirit.com/odfs/template-develo/template-syntax/functions/header/navigation/index.html
Use #nav.folder to obtain the link to a folder within the Site Store for navigation display. This is useful for checking if a folder contains a start page or start folder.
```HTML
$CMS_IF(#nav.folder == #global.node.parent)$