Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

UPDATE after trying the OOTB list app:

I have a strange issue with placing a list view web part on a publishing page layout.

The searchbox is displaying, but when I search it does not load any results (the spinner never stops spinning).

The javascript console spits out:

inplview is undefined

so I tried referencing inplview.js. This makes the error message disappear, but still no luck with loading search results. Filtering and sorting works great though.

Note that this it true both for custom XSLT webpart and for the "App" for the list.

share|improve this question
    
I found that if I edit the web part and go to 'modify current view' page, click Ok to save the view (without actually changing anything), then the search box will work. But as soon as I publish the page, the search box stops working again. Modify view will make the search box work. Publish the page will make the search box stop working. I think this is a SharePoint bug. –  user17266 Sep 15 '13 at 22:52
    
Not solved yet, but as you say, as long as the yellow status row is visible it will work. Seems some JavaScript that is needed for the search box does not load otherwise –  Robert Lindgren Sep 16 '13 at 5:50
    
I've done a workaround from codebehind where I call showribbon, but this messes up the Edit-function of the page a bit.. –  Robert Lindgren Sep 16 '13 at 8:49

2 Answers 2

Thanks Robert! I am banging my head on the wall for this!

Basically you don't have to add a code just to show the ribbon by default. Just go navigation and tick NO to show or hide command ribbons.

According to the error that i got below, it is referencing to a script outside our domain.

Webpage error details Message: Script error Line: 0 Char: 0 Code: 0 URI: https://cdn.sharepointonline.com/6274/_layouts/15/sp.ui.listsearchbox.js?rev=SMNOuJrjiX3HzGpk4HWtJg%3D%3D

And showing the ribbon works well. And this only happens to publishing pages.

share|improve this answer
    
That is one workaround worth trying! To bad we still do not se a permanent fix for this issue! –  Robert Lindgren Oct 8 '13 at 5:49
    
I tried this approach, but if the user does not have edit permissions it will not show any ribbon. And therefore it will fail to do the search still –  Robert Lindgren Oct 8 '13 at 6:18

have you deployed a design manager package to your publishing site?

that can corrupt some of the OOTB content type for publishing sites, and your behavior of it works until published can indicate one of the fields you need is gone. I had this happen with a roll up image in a custom page layout. Worked fine and was visible until I hit publish, then it stopped showing up

if you have, try you webpart and edit scenario on a Plain & fresh site collection.

share|improve this answer
    
No I have not. This was on the standard masterpage, with only some custom CSS files loaded. We have reproduced the issue in a completely OOTB environment too –  Robert Lindgren Sep 26 '13 at 15:50

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.