Autofahrn Posted April 28, 2018 Share Posted April 28, 2018 I'm looking for a solution to have an api-driven list of pages and currently struggle with using InputfieldPage due to the requirement to specify allowed pages. Background is, that I'm using PW to implement a full featured forum (which actually works quite well and pretty fast btw.) and this page collection is used to consolidate notifications on a per-user basis which are sent out as notification mails. This part works nicely as long as I specify any possible template and pages for the page inputfield. Problem is, that I can't check the current setting in Admin since opening the input field (I set it to closed and loaded via AJAX on demand) triggers loading of several thousand pages into the dropdown list which takes a while and ends in timeout error 500 from time to time. I just want to see the (few) currently referenced pages (preferably with the title field) for diagnostic purposes, I never will add references from the admin so I don't need the dropdown to be filled. What's the best way to accomplish this? Link to comment Share on other sites More sharing options...
kongondo Posted April 28, 2018 Share Posted April 28, 2018 15 minutes ago, Autofahrn said: I just want to see the (few) currently referenced pages (preferably with the title field) for diagnostic purposes, I never will add references from the admin so I don't need the dropdown to be filled. Use either InputfieldPageAutocomplete or InputfieldPageListSelectMultiple as input for the page reference field. These will only load selectable pages on request. 1 1 Link to comment Share on other sites More sharing options...
Autofahrn Posted April 28, 2018 Author Share Posted April 28, 2018 Sure, must have been blind and skipped testing the select multiple for any unknown reason. solved&closed, thanks! 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