Aller au contenu principal

Editing project settings in content creator

Commentaires

4 commentaires

  • Zendesk API User
    Author: sense - 10/25/2022 8:27

    From what I know this is still not possible in the ContentCreator.
    I also did not find a feature notice in any of the changelogs.

    0
  • Zendesk API User
    Author: Hendrik - 11/18/2022 12:20

    Hi,

    the only option to edit project settings in content creator is to use an https://docs.e-spirit.com/odfs/dev/de/espirit/firstspirit/ui/operations/ShowFormDialogOperation.html in combination with the projects settings form data

    br, Hendrik

    0
  • Zendesk API User
    Author: sense - 12/13/2022 8:05

    Maybe provide a simple beanshell implementation if you have the time

    0
  • Zendesk API User
    Author: hoebbel - 12/15/2022 14:23

    In Beanshell you could solve it like this:

    import de.espirit.firstspirit.access.store.Store; import de.espirit.firstspirit.agency.OperationAgent; import de.espirit.firstspirit.agency.StoreAgent; import de.espirit.firstspirit.ui.operations.OpenElementDataFormOperation; import de.espirit.firstspirit.webedit.WebeditUiAgent; globalstore = context.requireSpecialist(StoreAgent.TYPE).getStore(Store.Type.GLOBALSTORE); projectProperties = globalstore.getProjectProperties(); operationAgent = context.requireSpecialist(OperationAgent.TYPE); openElementDataFormOperation = operationAgent.getOperation(OpenElementDataFormOperation.TYPE); openElementDataFormOperation.setOpenEditable(projectProperties.getPermission().canChange()); webeditUiAgent = context.requireSpecialist(WebeditUiAgent.TYPE); language = webeditUiAgent.getPreviewLanguage(); if (language == null) { language = context.getProject().getMasterLanguage(); } openElementDataFormOperation.setLanguage(language); openElementDataFormOperation.perform(projectProperties);

    best regards
    Holger

    0

Vous devez vous connecter pour laisser un commentaire.