trying to use the page in an non-page page

I have the following in my layout:
#cb.quickView(view=’_pagesidebar’)#

In the _pagesidebar view I have

cb.widget(“SearchForm”)

When I try to search, I’m getting:
“This probably means you are trying to use the page in an non-page page! Redundant huh?”

Why can’t I do this? This is included the in the default layout that comes with contentbox? If I can’t do this shouldn’t it be removed?

Seems like this worked back in 1.2.0.

I ran into this the other day-- the problem is probably that your URL shows /__search which doesn’t map to any particular “page” object, but is a direct route to execute the search action. Many of the method in CBHelper call cb.getCurrentPage() which look for a “page” object in prc to determine what page is being displayed. This errors in the context of the custom /__search route. I’ve just added checks in my layouts to not call those functions if cb.isPageView() is false, but perhaps there is an enhancement we can make so the search URL gets a page set somehow. Can you put in a ticket? Luis is on vacation now but he can look at it when he gets back. In the mean time, if I recall, hitting the URL /blog/search works the exact same, but does load a page. Look at the search at the top and bottom of my blog here: http://www.codersrevolution.com/ for an example of the two different URLs.

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com