valan Posted December 16, 2013 Share Posted December 16, 2013 I've recently discovered Page Autocomplete module (great module for large sites btw) and decided to use it at my site. It works but not in the way I'm expecting. Or at least not as described at module description page. (1) "Autocomplete Advanced Options" do not appear in Page inputfield admin interface. As a result I can't include "non-title" fields to the search. (2) "Template of selectable pages" settings in Page inputfield admin interface doesn't work together with autocomplete. E.g. I need to limit search to selected templates but can't do that. I'm running PW 2.3.1 and PHP 5.3. Thanks in advance for your help! Link to comment Share on other sites More sharing options...
ryan Posted December 27, 2013 Share Posted December 27, 2013 (1) "Autocomplete Advanced Options" do not appear in Page inputfield admin interface. Looks like we've got a bug here on the dev branch (if that's what you are running?). First, update to the latest version of the dev branch. Then edit your /wire/core/InputfieldWrapper.php and add this line as the first line in the getChildByName() method: if(!strlen($name)) return null; Does that fix it? I think it will, but am not in my office to test yet. (2) "Template of selectable pages" settings in Page inputfield admin interface doesn't work together with autocomplete. E.g. I need to limit search to selected templates but can't do that. I can't yet find any indication of why this wouldn't work, and have it in use on a few sites. Make sure your dev version is up-to-date. Also make sure that you don't already have a "custom PHP code" or "custom selector" specified that might be overriding your template setting. If you still can't get it to work, let me know and I'll attempt to reproduce when back in the office. Another way you can get the same behavior would be to use the "custom selector" and specify "template=your-template". 1 Link to comment Share on other sites More sharing options...
valan Posted January 25, 2014 Author Share Posted January 25, 2014 I've upgraded to PW 2.3.11 and problem disappeared. 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