Hi andremalenfant,
The limit argument works, but it simply limits. Pagination is an interesting idea and I think a useful feature for DG, but it does not currently exist.
We’ll add this to our TODO list.
Thanks for the suggestion! 🙂
-Dan
Just an update — this functionality is slated for inclusion in the next release.
-Dan
The way you added pagination, by linking it to the ‘limit’ parameter now displays the pagination icons whether you want it or not. I use document gallery to provide a consistent view of downloadable documents across my website whether it be one document or many. In several cases, I just want myself or one of my users to be able to display the latest uploaded document in a category, without editing the short code everytime a document gets updated/uploaded. I can do this very easily by sorting the category(ies) in desc order by ID and setting a limit of ‘1’. Unfortunately, now I have these pagination icons appearing, even for one document. Pagination should be its own separate option.
It is linked to limit & paginate. To use limit with the old behavior you simply need to set paginate=false.
-Dan
PS: If you’ve found this plugin useful, please take a moment to rate it. Thanks! 🙂
Worked like a charm. Thanks!
Fantastic!
We didn’t publicize that option with the release since it seemed like a much less common use case, but we never want to break existing features for the sake of new ones unless absolutely necessary! 🙂
-Dan