Skip to content

Add @SNIPPET binding for generating list of TV options  #14074

@sdrenth

Description

@sdrenth

Summary

With PR #13865 @EVAL has been removed for security reasons. If you want to use a snippet for generating a list of TV options we normally use @EVAL. The suggested fix for this issue was to use a chunk which calls a snippet (as mentioned in the comments of the PR).

I think @SNIPPET should be added as a binding option, else you need to add a chunk and a snippet instead of just having the one snippet. It's more a work-around then a proper fix in my opinion.

Also I'd like to see support for @FILE, and make it possible to do something like this:

@FILE [[++core_path]]/components/mycomponent/elements/snippets/getlist.php

Which makes it possible to also work filebased without any reference to the database.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-coreblockedActive participation around the pull request or issue required. Consensus is not reached.featureRequest about implementing a brand new function or possibility.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions