fabiobettiol's avatar

Change the number of results of a HasMany field

For Nova:

Is there a way to modify the number of paginated results returned by a HasMany field in the recource's detail view? (actually defaulting to 5 per page)

... and probibily adding some filtering features too ?

0 likes
9 replies
fabiobettiol's avatar

@PETRIT - Thank you.

I was refering on how to do it on a Nova resouce. I edited my question to set it clear .

aurawindsurfing's avatar
Level 50

Hi,

On your resource:

/**
     * The number of resources to show per page via relationships.
     *
     * @var int
     */
    public static $perPageViaRelationship = 5;
21 likes
fabiobettiol's avatar

Thank you, very much. I looked for It all around the source, without success. I will give it a try.

drubie87's avatar

@gustav1105

Personally I am using Nova, and I programmed some of my own form objects to get the similar results, however, adding features was eating up a lot of my time.

And filling in the template information was a hassle. Whereas I will admit, Nova is kind of complicated to work with, it solves a lot of problems, and the solutions I had come up with were just as complicated, or even more complicated.

So for non-mission critical CRUD forms (which come on, you know any kind of larger site has tons of them), Nova has saved me tons of hours of time, and paid for itself in it's first week. People keep hating on it, but what the heck other solution is better my friend?

Please point the way, and I will gladly buy it, because Nova has already paid dividends. Stop crapping on things unless you have some other better solution.

Otherwise, just keep your mouth shut and stop hating on people's hard work.

10 likes
jparty's avatar

It would be great to be able to change the default perPageViaRelationship.

Please or to participate in this conversation.