Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Vitaly Vasilega 65 posts 187 karma points
    Jul 11, 2016 @ 09:19
    Vitaly Vasilega
    0

    How to change value in model.config and save them when I work with pages.

    Hi everyone.

    I've created a plugin which use my custom data type.

    When I create/edit page where there is my data type I can get all data in angular controller through model.config.

    But, how can I change data in model.config and save them?

    How can I do that?

    I can change data in model.config but the changes will not save.

    Just I want to add functionality to change data when user work with page.

    Because not all users has permission to the development section.

    Thanks

  • Ian 178 posts 752 karma points
    Jul 11, 2016 @ 12:05
    Ian
    0

    model.config is for settings which control the behaviour of a property editor for users when editing content. An example of this would be a text box with a character limit. The datatype might have a config value for maxChars which can only be set when creating a datatype in preparation for adding a property to a document type on the developers section. There is no work around for this.

  • Vitaly Vasilega 65 posts 187 karma points
    Jul 11, 2016 @ 12:17
    Vitaly Vasilega
    0

    I knew it!

    Thanks!

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies