Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Sets a category's content type.

Info
titleSlice aware

This entity is slice aware, which means that to use this facility:

  • there must be a logged in user in the context of the execution
  • this user must be currently within a slice
  • this user must have the necessary privileges to edit the entity (IFE → System → Benutzer → Roles → Content-Management)

Example

Code Block
languagejs
linenumberstrue
...
category.setContentType("CONTENT");
...

...

Code Block
languagejs
linenumberstrue
...
category.setDescription("Anhänger");
...

Parameter value (required)

category.

...

setImage(

...

file)

Sets a category's image.

Info
titleSlice aware

This entity is slice aware, which means that to use this facility:

  • there must be a logged in user in the context of the execution
  • this user must be currently within a slice
  • this user must have the necessary privileges to edit the entity (IFE → System → Benutzer → Roles → Content-Management)

Example

Code Block
languagejs
linenumberstrue
...
category.setImage(file);
...

Parameter file (required)

category.setName(value)

Sets a category's name.

Example

Code Block
languagejs
linenumberstrue
...
category.setName("Fotobuch");
...

...

Sets a category's node type.

Info
titleSlice aware

This entity is slice aware, which means that to use this facility:

  • there must be a logged in user in the context of the execution
  • this user must be currently within a slice
  • this user must have the necessary privileges to edit the entity (IFE → System → Benutzer → Roles → Content-Management)

Example

Code Block
languagejs
linenumberstrue
...
category.setNodeType("LEAF");
...

...

Sets a category's short description.

Example

Code Block
languagejs
linenumberstrue
...
category.setShortDescription("Anhänger")
...

...

Retrieves a category's short description string.

Example

Code Block
languagejs
linenumberstrue
...
var sDesc = category.shortDescription;
...

...

Retrieves a category's unprocessed short description string.

Example

Code Block
languagejs
linenumberstrue
...
var shortDesUnproc = category.shortdescriptionUnprocessed;
...

...

Info
titleSlice aware

This entity is slice aware, which means that to use this facility:

  • there must be a logged in user in the context of the execution
  • this user must be currently within a slice
  • this user must have the necessary privileges to edit the entity (IFE → System → Benutzer → Roles → Content-Management)

Example

Code Block
languagejs
linenumberstrue
...
var sliceID = category.sliceId;
...

...

Retrieves a category's title.

Example

Code Block
languagejs
linenumberstrue
...
if (category.title == "Fotobuch")
{
  ...
}
...

...

Updates a category with the given options.

Example

Code Block
languagejs
linenumberstrue
...
category.update(options);
...

...

Retrieves a category's UUID.

Example

Code Block
languagejs
linenumberstrue
...
var catUUID = category.uuid;
...

...