Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extension not loaded on special modules #22

Open
weber-d opened this issue Jul 23, 2018 · 2 comments
Open

Extension not loaded on special modules #22

weber-d opened this issue Jul 23, 2018 · 2 comments

Comments

@weber-d
Copy link

weber-d commented Jul 23, 2018

My goal is to write an app that modify the appearance of our IBM Connections navigation. So it's required to load this app globally. According to the documentation on listing 3, setting the path to global should be exactly fit those use-case.

So my app configuration looks like this:

{
    "name": "Theme",
    "title": "Theme",
    "description": "Global theme customizations",
    "services": [
        "Customizer"
    ],
    "state": "enabled",
    "extensions": [
        {
            "name": "Stylesheets",
            "type": "com.ibm.customizer.ui",
            "payload": {
                "include-files": [
                    "theme/dist/main.css"
                ],
                "cache-headers": {
                    "cache-control": "max-age=0"
                }
            },
            "path": "global",
            "application": "Theme",
            "state": "enabled"
        }
    ]
}

For unknown reasons, this doesn't work globally as expected:

Working

  • homepage
  • communitys
  • files
  • search
  • social
  • forums

NOT Working

  • profiles
  • activities
  • blogs
  • wikis
  • news

It doesn't even work when I explicitly load the app for one of those broken modules using filters, e.g. the blog module. For this test, I used the config above and modified the payload as shown below:

            "payload": {
                "include-files": [
                    "theme/dist/main.css"
                ],
                "cache-headers": {
                    "cache-control": "max-age=0"
                },
                "match": {
                    "url": "blogs"
                }
            },

Used the example-url http://my-connections-host/blogs/roller-ui/homepage?lang=en_us from our docs for testing, but can't see my extension loaded. Also not on pages inside the blogs, e.g. view page of a blog entry.

My last try was to specify multiple apps using regular rexpressions:

                "match": {
                    "url": "homepage|blogs"
                }

Now the custom css from my app is loaded on the homepage fine, however still nothing in the blogs. We're using the pink-stack Release v6.0.0.0 Build IC6.0_CR_Integration_20171116-0701.

@weber-d
Copy link
Author

weber-d commented Jun 26, 2019

What is the current state? This issue is open for about a year now without any reply...

@ibmcndev
Copy link
Contributor

I do apologize that this has gone unnoticed for so long. Please take a look at the visual update 1 example app definition here: https://github.com/ibmcnxdev/cnx-custom-theme/blob/master/vu1-include-css.json

Rather than using "global" as a path with url matching, it has an extension / path definition for each individual service based on path.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants