Skip to content

Code does not parse with navigation plugin #18

Open
@panosru

Description

@panosru

When I fetch the items from the navigation plugin the code is not parsed.

My configuration looks like this:

  snippets: {
    config: {
      uppercase: true,
      ignoreUnmatched: true,
      contentTypes: {
        allow: [ 'plugin::navigation.navigation', 'plugin::navigation.navigation-item', 'plugin::navigation.navigations-items-related' ],
      },
    },
  },

The response I'm getting is the following:

[
    {
        "order": 1,
        "id": 3,
        "title": "About",
        "type": "INTERNAL",
        "path": "about",
        "externalPath": null,
        "uiRouterKey": "about",
        "menuAttached": false,
        "collapsed": false,
        "createdAt": "2024-03-04T02:36:16.615Z",
        "updatedAt": "2024-03-04T02:36:16.615Z",
        "audience": [],
        "parent": null,
        "related": {
            "id": 1,
            "Description": "Sample demo {CUSTOM_CODE} text",
            "createdAt": "2024-03-04T01:57:12.030Z",
            "updatedAt": "2024-03-04T02:33:38.612Z",
            "publishedAt": "2024-03-04T02:33:38.610Z",
            "_softDeletedAt": null,
            "_softDeletedById": null,
            "_softDeletedByType": null,
            "locale": "en",
            "__contentType": "api::about.about",
            "navigationItemId": 3
        },
        "items": null
    }
]

When I call the page via the API I'm getting:

{
    "data": {
        "id": 1,
        "Description": "Sample demo 123123 text",
        "createdAt": "2024-03-04T01:57:12.030Z",
        "updatedAt": "2024-03-04T02:33:38.612Z",
        "publishedAt": "2024-03-04T02:33:38.610Z",
        "locale": "en"
    },
    "meta": {}
}

I'm not sure what I'm doing wrong.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions