jonatan Posted April 10, 2020 Share Posted April 10, 2020 Hi! ? I tried searching for this, but couldn't find anything on on it... How can I get the deactivated / turned off repeater items? Why? Because I want to use it as an "archive" function, so that the toggle-off makes them show up under "previous events", and when toggled-on they'll show up under "Current events" All the best, Jonatan. Link to comment Share on other sites More sharing options...
bernhard Posted April 10, 2020 Share Posted April 10, 2020 Here "content" is my repeater matrix field. See the first dump - it shows the selector used. If you take that selector you get all items (including unpublished). If you do a status>1 you'll get all that are not regularly published (means hidden etc). Doing status>= Page::statusUnpublished would show only unpublished items (not sure if that makes a difference to status>1). And I'm also sceptical if repeaters are the best option here compared to using regular pages ? 1 Link to comment Share on other sites More sharing options...
jonatan Posted April 10, 2020 Author Share Posted April 10, 2020 Awesome @bernhard! You're the man! ? The find (include=all) did it. Worked perfectly! Thank you so much!! I had no idea about the d() debug function! So extremely useful! Once again so very impressed by PW's enjoyable logic! All the best, Jonatan Link to comment Share on other sites More sharing options...
jonatan Posted April 10, 2020 Author Share Posted April 10, 2020 6 hours ago, bernhard said: And I'm also sceptical if repeaters are the best option here compared to using regular pages ? What's your concern? ? Link to comment Share on other sites More sharing options...
adrian Posted April 10, 2020 Share Posted April 10, 2020 1 hour ago, jonatan said: I had no idea about the d() debug function! You can use d() from a template file like you are doing in that screenshot, but you might find it cleaner to use bd() AKA "barDump" in that situation so that the dumps are shown in the Tracy bar. The main time I use d() is in the Console panel like in Bernhard's example. 1 Link to comment Share on other sites More sharing options...
jonatan Posted April 10, 2020 Author Share Posted April 10, 2020 44 minutes ago, adrian said: You can use d() from a template file like you are doing in that screenshot, but you might find it cleaner to use bd() AKA "barDump" in that situation so that the dumps are shown in the Tracy bar. The main time I use d() is in the Console panel like in Bernhard's example. Thanks @adrian! ? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now