Cognos Analytics with Watson

 View Only
  • 1.  Trying to get rid of Watch video button

    Posted Thu June 09, 2022 05:55 AM
    Hi,

    I'm struggling to get rid of "Watch video" button.

    I've tried the solution proposed by @JEAM COELHO in Customizing the Cognos Analytics 11.2 home page, but I'm unable to succeed.

    Best regards,​

    ------------------------------
    Patrick Neveu
    Positive Thinking Company
    ------------------------------


  • 2.  RE: Trying to get rid of Watch video button

    IBM Champion
    Posted Thu June 09, 2022 06:33 AM
    Are you specifically looking to hide only the Watch Video, or the entire videos section?

    You can hide the videos section by doing this: 
    .ca-home-getStartedTab .bx--col-md-8.bx--col-lg-8 {display:none !important}



    This would hide just the link:
    .ca-home-getStartedTab .bx--col-md-8.bx--col-lg-8 a {display:none !important}



    ------------------------------
    Paul Mendelson
    ------------------------------



  • 3.  RE: Trying to get rid of Watch video button

    Posted Thu June 09, 2022 08:53 AM
    Hi Paul,

    Wonderful, it looks like what I'm looking for.
    I'm trying to do this with an extension.

    Best regards,

    ------------------------------
    Patrick Neveu
    Positive Thinking Company
    ------------------------------



  • 4.  RE: Trying to get rid of Watch video button

    Posted Thu June 09, 2022 11:45 AM
      |   view attached
    Hi,

    Thanks to Jeam, here is the working solution (tested with v11.2.1). Again, all credits are for Jeam with this extension.

    If you are wondering about the login structure in the spec.json file, read the following article:
    https://www.ibm.com/support/pages/441-error-when-uploading-theme-and-also-login-extension-calls-css-file-upon-login#:~:text=The%20441%20unauthorized%20error%20occurs,request%2C%20the%20response%20is%20441

    Best regards,

    ------------------------------
    Patrick Neveu
    Positive Thinking Company
    ------------------------------

    Attachment(s)

    zip
    Theme_CSS.zip   801 B 1 version


  • 5.  RE: Trying to get rid of Watch video button
    Best Answer

    Posted Thu June 09, 2022 05:52 PM
    Hi Patrick!

    Just reproducing the message I sent to you, to make public:

    ----

    To be clear, follow theses steps:

    Create a spec.json with this code:

    {
      "name":"Theme_CSS",
      "schemaVersion": "2.0",
      "extensions": [
      {
        "perspective": "home",
        "features": [{
          "id": "ca.home.perspective.theme.css",
    	  "cssStyles": ["v1/ext/Theme_CSS/login/css/style.css"]
        }]
      }
      ]
    }​


    Create folder structure /login/css, in root folder (where spec.json is located)

    In folder login/css, create a style.css file and put this code:

    div.ca-home-welcomeBanner-buttonsGroup , div.ca-home-welcomeBanner-closeButton{
        display:none !important;
    }
    
    div.ca-home-welcomeBanner {
      background-image: none !important;
      background-image: linear-gradient(to bottom right, rgb(0, 54, 65), rgba(149, 207, 220, 0.5) ) !important;
      height: 240px !important;
    }
    
    table.bx--data-table.bx--data-table--no-border.bx--data-table--sticky-header {
        max-height: 2000px !important;
        padding-bottom: 25px !important;
    }
    
    a.commonMenuLink img {
        height: 18px !important;
        width: 18px !important;
        opacity: .8 !important;
    }
    

    This code has some customization for my environment. But, the most important part to hide watch button is

    div.ca-home-welcomeBanner-buttonsGroup , div.ca-home-welcomeBanner-closeButton{
    display:none !important;
    }

    Then, zip the folder where you create this customization and upload to Cognos at Manage > Customization > Extensions.

    For your knowledge, I've create login/css structure because of this issue that sometimes can happen: 

    https://www.ibm.com/support/pages/441-error-when-uploading-theme-and-also-login-extension-calls-css-file-upon-login#:~:text=The%20441%20unauthorized%20error%20occurs,request%2C%20the%20response%20is%20441



    ------------------------------
    JEAM COELHO
    Cognos Solution Architect

    LinkedIn: https://www.linkedin.com/in/jeamcoelho/
    ------------------------------