putyourlightson / craft-entry-count

Counts and displays the number of times that an entry has been viewed in Craft CMS.
MIT License
47 stars 19 forks source link

How can I exclude one or more entries from the entries output? #30

Closed charkdesign closed 4 years ago

charkdesign commented 4 years ago

I am wanting to exclude one or more entries (by their entry ID) from the entries output. The output would be displaying a limited number of the most viewed entries (e.g. 6) but there may be cases where certain entries shouldn't be displayed and therefore would need to be excluded. Is this possible?

bencroker commented 4 years ago

It is not possible to selectively output entries on the plugin page in the CP. What you could perhaps do, is conditionally count entries in your front-end templates.