Announcement

Collapse
No announcement yet.

Stream - write your message here hide

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Stream - write your message here hide

    Is it possible to hide the function Stream - write your message here or to set it so that it is not displayed? See image. Thanks and regards

  • #2
    1. Hide this function in /#Stream: customize stream controller, point it to the custom view
    2. Hide this function in the record panel: add to the clientDefs "streamPanelView" : "customPanelView"
    Last edited by dimyy; 08-26-2021, 06:51 PM.

    Comment


    • RSGRG
      RSGRG commented
      Editing a comment
      Thanks dimyy, but unfortunately I can't quite follow you. I don't understand what to do. Can you please take a screenshot of it.

    • RSGRG
      RSGRG commented
      Editing a comment
      Thanks dimyy, but unfortunately I can't quite follow you. I don't understand what to do. Can you please take a screenshot of it.

  • #3
    You can also disable the Stream completely from an Entity by adding file custom/Espo/Custom/Resources/metadata/scopes/<YourEntity>.json with this content:
    Code:
    {
      'stream': false
    }

    Comment


    • RSGRG
      RSGRG commented
      Editing a comment
      Thanks Ceonello, but the stream is important to me, we just don't need the field for writing messages.

  • #4
    Thanks dimyy, but unfortunately I can't quite follow you. I don't understand what to do. Can you please take a screenshot of it.

    Originally posted by dimyy View Post
    1. Hide this function in /#Stream: customize stream controller, point it to the custom view
    2. Hide this function in the record panel: add to clientDefs "streamPanelView" : "customPanelView"

    Comment


  • #5
    Other way:

    Add custom css to hide input block in panel:

    .panel-body[data-name="stream"] .form-group.post-container: {
    display: none;
    }

    Add custom css to hide input block in list view:

    .create-post-container {
    display: none;
    }

    This tweaks only hide input fields and not affected to user rights!
    Also this tweak applied to all users!


    Adding custom css:

    Modify or create file: /custom/Espo/Custom/Resources/metadata/app/client.json
    Add
    Code:
     "cssList": [
      "__APPEND__",
      "client/custom/css/custom.css"
    ]
    Modify or create file: /client/custom/css/custom.css
    Add needed css selectors.

    Comment


    • #6
      Hello dimyy,

      I have implemented your suggestions so far. Unfortunately it didn't work. See pictures. I've already done the following: Clear all backend cache, Rebuild backend and clear cache That didn't help either.



      Originally posted by dimyy View Post
      Other way:

      Add custom css to hide input block in panel:

      .panel-body[data-name="stream"] .form-group.post-container: {
      display: none;
      }

      Add custom css to hide input block in list view:

      .create-post-container {
      display: none;
      }

      This tweaks only hide input fields and not affected to user rights!
      Also this tweak applied to all users!


      Adding custom css:

      Modify or create file: /custom/Espo/Custom/Resources/metadata/app/client.json
      Add
      Code:
       "cssList": [
      "__APPEND__",
      "client/custom/css/custom.css"
      ]
      Modify or create file: /client/custom/css/custom.css
      Add needed css selectors.

      Comment


      • dimyy
        dimyy commented
        Editing a comment
        client.json is not json. Add {} brackets

    • #7
      Hello dimyy,

      thanks, it worked now.

      Where do I have to add this script if I also want to hide the post line in accounts, contacts and opportunitys? I added the script lines in account.json under \ custom \ Espo \ Custom \ Resources \ metadata \ clientDefs. Unfortunately I still get the post line. So where do I have to add these script lines so that I can hide the post line in accounts, contacts and opportunitys?
      Attached Files

      Comment


      • #8
        Correct CSS selector:
        Code:
        .panel-body[data-name="stream"] .form-group.post-container {
        display: none;
        }
        (without colon)

        Comment


        • RSGRG
          RSGRG commented
          Editing a comment
          Perfect thank you
      Working...
      X