Search Page return empty result if dynamic root not set


(Tim Davison) #1

Hi all

 

I'm trying to replace an asset listing with a Search Page (long story) and everything's going fine except one small difference in functionality with dynamic root nodes.

 

In both Asset Listing and Search Page you can define a dynamic root node by, in this case, a GET variable.  So far so good.

 

For Asset Listings you can specify to return the empty result if the root node is not specified.  In Search Page it seems you cannot - if root node is not specified then it defaults to searching in all static root nodes.  It seem you cannot force the empty result if the root node is not specified.  Just wanted to confirm this is the case, and see if this Is this intentional or an oversight, or possibly functional in a later release.

 

My version: v4.12.4

 

Cheers


(Bart Banda) #2

Yea this is an oversight. I've added a feature request in Squizmap so that this gets added in an upcoming release: https://squizmap.squiz.net/matrix/6557 

 

As a workaround, could you do something with keyword modifiers for the dynamic root node? So if empty, print a fixed other root node?