Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

content_method with params #136

@petforsberg

Description

@petforsberg

There appeared certain problem here:

#132

it is due to use of Global Parameters (e.g. node-paths defined in parameters.yml) in Documents / Entities. Since using external parameters within plain PHP objects is considered not a good practice, what about doing sth like this from inside a Route Auto config section:

        forumPath: [content_method, { method: getParentPath, slugify: false, parameters: %some_cms_path% }]

with this new "parameters" feature, it would be possible to provide global %some_cms_path% variable to the getParentPath method, defined as following:

getParentPath($cmsPath)
{
    //...
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions