I've been trying to use the PageAutoComplete fieldtype to connect some autors (teachers and students) to a particular work, but allowing to set unpublished (or hidden) student and teacher pages as well. For that, I've established a filter:
template=teacher|student, include=all
or
return $pages->filter("template=teacher|student, include=all")
In any other compatible fieldtype, it works just as it should, using php code or just the selector, showing me every teacher/student. But using the PageAutoComplete, it never finds the hidden or unpublished pages.
Is it a bug? Or am I doing something wrong?
4 replies to this topic
#2
Posted 13 July 2012 - 10:14 AM
PageAutocomplete actually uses the ProcessPageSearch AJAX API which doesn't allow "include=all" except from Superuser. This is for security reasons. Try changing it to "include=hidden" which should at least enable you to show the hidden (though not unpublished) pages.
Also tagged with one or more of these keywords: Module
Community Support →
Modules/Plugins →
Inline EditorStarted by Sinmok, 10 May 2013 |
|
|
||
Community Support →
Modules/Plugins →
Module: Site indexerStarted by Alessio Dal Bianco, 08 May 2013 |
|
|
||
Community Support →
Modules/Plugins →
Form Builder - Form with more than 1 formbuilderfile inputStarted by theGC, 07 May 2013 |
|
|
||
Community Support →
General Support →
How can I set/get module-data from DB when not implementing ConfigurableModule?Started by horst, 14 Apr 2013 |
|
|
||
Community Support →
API & Templates →
Programmatically change page template in modulesStarted by boundaryfunctions, 11 Apr 2013 |
|
|
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users













