Jump to content

few problems with Page Autocomplete Module


valan
 Share

Recommended Posts

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

  • 2 weeks later...
(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". 

  • Like 1
Link to comment
Share on other sites

  • 4 weeks later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...