Adapts a repository app to the Theme interface, letting a repository app be selected and rendered as a website theme. Instances wrap a single RepositoryApp and delegate name and title lookups to it. All content and editor rendering falls back to the platform's shared component templater and the keditor editor, since a repository app does not supply its own templating engine.

Implements: Theme


Properties

PropertyReturnsDescription
defaultTemplateStringPath of the default page template used when a page does not specify its own template.
editorNameStringName of the page editor used to edit content in this theme.
extraFieldsMap<String,ExtraField>Extra configurable fields for this theme. Always null, since a repository app theme does not define any.
htmlTemplaterHtmlTemplaterHTML templater used to render pages for this theme, taken from the platform's shared theme manager rather than from the wrapped repository app.
nameStringUnique identifier for this theme, which is the wrapped repository app's instance id.
previewImageStringPreview image for this theme. Always null, since a repository app theme does not have a preview image.
titleStringDisplay title for this theme, taken from the wrapped repository app's title with no organisation or website branch context.

Methods

getName()

Returns: String

Unique identifier for this theme, which is the wrapped repository app's instance id.

getPreviewImage()

Returns: String

Preview image for this theme. Always null, since a repository app theme does not have a preview image.

getTitle()

Returns: String

Display title for this theme, taken from the wrapped repository app's title with no organisation or website branch context.

getExtraFields()

Returns: Map<String,ExtraField>

Extra configurable fields for this theme. Always null, since a repository app theme does not define any.

getHtmlTemplater()

Returns: HtmlTemplater

HTML templater used to render pages for this theme, taken from the platform's shared theme manager rather than from the wrapped repository app.

getDefaultTemplate()

Returns: String

Path of the default page template used when a page does not specify its own template.

getEditorName()

Returns: String

Name of the page editor used to edit content in this theme.

applyEmailTemplate()

Returns: boolean

Whether the batch email service should evaluate a page template around an email body when using this theme.

To get full access to the Kademi Hub existing customers can login here, or new customers can register here.