Gate specific items inside a list Answered

Post author
Waqar Naqshbandi

Is there are way to gate certain collection items inside a collection list? For clarification, I don't want to gate any fields inside my collection but items. I have 2400 items out of which 250 belong to one plan that I want to gate.

Comments

2 comments

  • Comment author
    Duncan Hamra

    Hey Waqar 👋 Great question, and thankfully we do have a solution for you.

    Are you able to change the URL’s of those 250 pages? What I recommend doing is pre-fixing each page-slug with the plan name. This way you can target them through gated content.

    If that’s not feasible, I can help you out with some custom code

    0
  • Comment author
    Waqar Naqshbandi

    Actually, I figured it out yesterday. Thanks for your response though.

    So the solution to my problem was that in order to show specific items in a single collection for a specific plan and keeping the rest public was really easy.

    Basically, I added a data-ms-content attribute and instead of defining the content id I linked it with a collection field where I added content ids and wherever I left it blank, are available to everyone and wherever I added a content id is now available only to those plans.

    0

Please sign in to leave a comment.