Hello,
I try to do a page provider with parameters.
- Parameter should be get in a WIDGET custom parameters.
- This widget is using this page provider to display results.
I couldn't find a solution to have results in my request WHEN I had 2 fields "parameter" instead of using
<pattern escapeParameters="true" quoteParameters="false">
Here is the extension point :
<extension target="org.nuxeo.ecm.platform.query.api.PageProviderService" point="providers">
<coreQueryPageProvider name="document_suggestion_amoi">
<property name="coreSession">#{documentManager}</property>
<pattern>
SELECT * FROM Document WHERE (ecm:path STARTSWITH '?')
AND ecm:primaryType IN ('Folder', 'Workspace') AND ecm:fulltext LIKE '?*' AND ecm:mixinType !=
'HiddenInNavigation' AND ecm:isCheckedInVersion = 0 AND
ecm:currentLifeCycleState != 'deleted'
</pattern>
<parameter>/My Domain/workspaces/Bidule/</parameter>
<parameter>#{documentSearchActions.simpleSearchKeywords}</parameter>
<sort ascending="true" column="dc:title"/>
<pageSize>5</pageSize>
</coreQueryPageProvider>
</extension>
moreover, parameter ONE should be #{mycustomparameter_fromwidgetcustom}
thank you