php - How do I get a flexform value in my repository? - Stack Overflow

I have a plugin that filters items, but I want to be able to set the limit in the plugin options.I add

I have a plugin that filters items, but I want to be able to set the limit in the plugin options.

I added a flexform field, I just need to be able to bring that value into my repository php where the query is made?

So I can set the limit $query->setLimit($mylimit);

I have read the documentation about it here but am a bit lost on how to do it.

I have a plugin that filters items, but I want to be able to set the limit in the plugin options.

I added a flexform field, I just need to be able to bring that value into my repository php where the query is made?

So I can set the limit $query->setLimit($mylimit);

I have read the documentation about it here but am a bit lost on how to do it.

Share Improve this question edited Mar 13 at 10:50 DarkBee 15.5k8 gold badges72 silver badges118 bronze badges asked Mar 13 at 10:33 user500665user500665 1,3801 gold badge13 silver badges45 bronze badges 0
Add a comment  | 

1 Answer 1

Reset to default 0

In your action, flexform-settings are available via $this->settings. Just pass your limit to the called method of your repository: ItemRepository->findAllFilteredByXy($xy, $this->settings['limit'])

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744707523a4589144.html

相关推荐

  • php - How do I get a flexform value in my repository? - Stack Overflow

    I have a plugin that filters items, but I want to be able to set the limit in the plugin options.I add

    18小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信