DNNCommunity / DNNCommunity/DNN.Blog

Hide pagination if no pages

Open
#150 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
39
Forks
41
PR merge metrics
No merged PRs in 30d

Description

## Please summarize your question in one sentence
When using the list template, some pagination HTML is printed even when there isn't any pages available. We need some way to conditionally hide HTML when there aren't any pages.

## Other comments or remarks

We're using this HTML provided by the module, but we would like to conditionally not output the 'bbs-pager' div entirely when there aren't any pages. How would we do that?

```


[subtemplate|Post.html|Posts]


    [subtemplate|Page.html|PostsPager|pagertype=somepages]



```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.