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 01 Answer
Reset to default 0In 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
评论列表(0条)