problem with specific webpart/html filenames?

LabKey Support Forum (Inactive)
problem with specific webpart/html filenames? Ben Bimber  2010-02-22 13:59
Status: Closed
 
I am creating a number of HTML views and .webpart.xml files. Usually these work just fine to add content, but there's specific cases that cause an error. The behavior is this:

-The name of the desired webpart will appear in the dropdown menu
-When I try to add it to a portal page, the page refreshes w/o errors (normal behavior), but no part is added. No record is inserted in the 'portal' table in postgres

The parameter that causes the import to stop working is 'title' in webpart.xml. See this trio of files:

File: wnprcUnits.html:

<html>Hello world</html>

File: wnprcUnits.view.xml:

<view xmlns="http://labkey.org/data/xml/view"
       title="WNPRC Units">
</view>

File: wnprcUnits.webpart.xml

<webpart xmlns="http://labkey.org/data/xml/webpart"
         title="wnprcUnits">
   <view name="wnprcUnits"/>
</webpart>

With these files as written, the webpart adds just fine. However, if I change the title param of the webpart.xml file to title="WNPRC Units", it is no longer added. I have changed the title successfully in other cases, but in this case and a handful of others it does not work.
 
 
daves responded:  2010-02-23 13:43
Hi Ben, this is probably a bug. I will investigate and open a new issue if I can reproduce it. It might be caused by the space in the name.

For now, omit the title and name the file to be whatever you want to be shown in the drop-down. The web part name is displayed only to admins--the title of the view shown by the web part is what all users see.