cofoundry-cms / cofoundry

Cofoundry is an extensible and flexible .NET Core CMS & application framework focusing on code first development
https://www.cofoundry.org
MIT License
835 stars 146 forks source link

Not able to see pagination on asset picker pop up #542

Closed akash0234 closed 8 months ago

akash0234 commented 8 months ago

image

Image and Document assets are showing only 1 page records.

HeyJoel commented 8 months ago

This looks to be an issue with the document asset picker only? I can't replicate with the image asset picker - paging is set to 30 items, are you sure you have more than that? I've fixed the bug with the document asset picker, it will be released alongside 0.12 and the .NET 8 migration.

akash0234 commented 8 months ago

image

I'm sure there is more than 30 assets.. I'm in middle of a project could you please suggest what actions can resolve this issue

HeyJoel commented 8 months ago

I'm just looking back at your screenshot, that doesn't look like the current built-in document asset picker - you shouldn't be able to add images as document assets, they should be added as "Image Assets". Can you provide more information on what you're doing?

akash0234 commented 8 months ago
  1. Cofoundry 0.11.3
  2. Yes Right Now im using DocumentAsset Services to serve my images (As There was no direct support to svgs and webps)
  3. I'm Using Dotnet6.0
  4. Im Using the below Syntax in Custom Entity Model or Page Block Model Both has same result [Document(FileExtensions = new string[] { "svg", "webp", "jpg", "jpeg", "png" })]
HeyJoel commented 8 months ago

If you have overriden the document asset picker dialog then you'll need to apply the changes in my commit yesterday, specifically fixing the reference to the pager control in DocumentAssetPickerDialog.html from:

 <cms-pager result="result" query="query"></cms-pager>

to

<cms-pager cms-result="result" cms-query="query"></cms-pager>
akash0234 commented 8 months ago

I Merged Your Patch it fixed My Paging Issue. although i lost my preview code, I'll Manage to bring back the same, Thanks For the constant support. 👍