Hiding/Disabling a single entry page in within a collection #7709
-
I have a collection of case studies. 99% of the time, these case studies are display on an index page, and have a corresponding entry page. However, in some (rare) cases, the client has requested that the case study only appear on the index page, and not have a corresponding entry page. Its easy enough to hide this from the user, but is there a simple method of ensuring that no page/slug for the entry is generated? Appreciate any advice :) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
There's not really a way to prevent a single entry from having a URL. But, you could have a {{ if prevent_url }}{{ 404 }}{{ /if }} |
Beta Was this translation helpful? Give feedback.
There's not really a way to prevent a single entry from having a URL.
But, you could have a
toggle
field called something likeprevent_url
and in your template trigger a 404.