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

I can't pass the enableMetadata parameter #86

Closed
vicenteserra opened this issue Aug 11, 2016 · 2 comments
Closed

I can't pass the enableMetadata parameter #86

vicenteserra opened this issue Aug 11, 2016 · 2 comments
Labels

Comments

@vicenteserra
Copy link

Hi, I have spent several hours trying to set enableMetadata parameter to true but I can't find how to do it.

I have tried several configuration options without success like:

"middleware": { "makara": { "priority": 100, "enabled": true, "module": { "name": "makara", "arguments": [ { "i18n": "config:i18n", "specialization": "config:specialization" "enableMetadata": "true" } ] } },
...

While debugging, I have the options parameter in dust-message-helper as undefined.

What can I do?

@grawk grawk added the question label Aug 11, 2016
@grawk
Copy link
Member

grawk commented Aug 11, 2016

Hi @vicenteserra.

You will need to pass arguments to the dust-makara-helpers dust helper via the view engines property, instead of the makara middleware. Here is a snippet of config which does what you want:

"view engines": {
        "dust": {
            "module": "makara",
            "renderer": {
                "method": "dust",
                "arguments": [
                    { "cache": true, "helpers": "config:dust.helpers" }
                ]
            }
        }
    },
    "dust": {
        "helpers": [
            "ppdustjs-filters-secure",
            "dustjs-helpers",
            {
                "name": "dust-makara-helpers",
                "arguments": {"enableMetadata": true}
            }
        ]
    },

@vicenteserra
Copy link
Author

Oh thank you very much. Sorry.

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

No branches or pull requests

2 participants