a-ok Posted June 23, 2016 Share Posted June 23, 2016 I am wanting to return all repeater fields, outside of admin, but it seems like you cannot do this without using include=all (even include=hidden doesn't work) but this also includes unpublished pages. Is there a combination to include=all but exclude=unpublished? 1 Link to comment Share on other sites More sharing options...
LostKobrakai Posted June 23, 2016 Share Posted June 23, 2016 include=hidden, status!=unpublished, Keep in mind that include=all will include a lot more than just unpublished pages. 2 Link to comment Share on other sites More sharing options...
a-ok Posted June 23, 2016 Author Share Posted June 23, 2016 2 minutes ago, LostKobrakai said: include=hidden, status!=unpublished, Keep in mind that include=all will include a lot more than just unpublished pages. Thanks, I think you meant 'include=all' as this seems to work just perfect... template=repeater_collections_detail_images, include=all, status!=unpublished Link to comment Share on other sites More sharing options...
horst Posted June 23, 2016 Share Posted June 23, 2016 I believe he meant what he has said: " Keep in mind that include=all will include a lot more than just unpublished pages." If it currently is working for you with include=all instead of include=hidden as suggested by @LostKobrakai, you only need to wait until the first page in your trash will match the selector too. 2 Link to comment Share on other sites More sharing options...
a-ok Posted June 23, 2016 Author Share Posted June 23, 2016 17 minutes ago, horst said: I believe he meant what he has said: " Keep in mind that include=all will include a lot more than just unpublished pages." If it currently is working for you with include=all instead of include=hidden as suggested by @LostKobrakai, you only need to wait until the first page in your trash will match the selector too. Bugger. How would you suggest I return my repeater fields then? There is this: http://cheatsheet.processwire.com/page/page-status/page-statustrash-8192/ so perhaps we could do the same status!=unpublished|trash Link to comment Share on other sites More sharing options...
Soma Posted June 23, 2016 Share Posted June 23, 2016 Repeaters are located in /admin so access protected too. So I guess for a not logged in user you wouldn't be able to $pages->find(selector) the repeater pages. I think then you'd need a "check_access=0" or a "include=all". Since they're in /admin you could also consider implicit "has_parent=RepeaterParentID" or "has_parent=2" ($config->adminRootPageID) instead of exluding trash somehow. 2 Link to comment Share on other sites More sharing options...
thetuningspoon Posted July 31, 2017 Share Posted July 31, 2017 I know this is a year old, but having just run into a similar issue, I wanted to point out that just adding check_access=0 should solve this particular problem without including any unwanted pages as a side effect. 3 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