cancel
Showing results for 
Search instead for 
Did you mean: 

'View in Browser' for share custom model

sradha
Champ on-the-rise
Champ on-the-rise
Hi,

I have created a custom model node-type and model-type of my:document.After that while create a content using the custom model ,the preview is coming as" the document has no content".Also i am trying to click on "View in browser" button ,it is showing error as :-

Web Script Status 404 - Not Found

The Web Script /alfresco/s/api/node/content/workspace/SpacesStore/84613df7-20c5-4277-967c-5b0639be6a54/Sample has responded with a status of 404 - Not Found.

404 Description:   Requested resource is not available.

Message:   08040002 Unable to locate content for node ref workspace://SpacesStore/84613df7-20c5-4277-967c-5b0639be6a54 (property: {http://www.alfresco.org/model/content/1.0}content)
   
Exception:   org.springframework.extensions.webscripts.WebScriptException - 08040002 Unable to locate content for node ref workspace://SpacesStore/84613df7-20c5-4277-967c-5b0639be6a54 (property: {http://www.alfresco.org/model/content/1.0}content)


Can anybody put some light on it?
12 REPLIES 12

sradha
Champ on-the-rise
Champ on-the-rise
Hi Mits,

No other exception.But I fould out the issue. In my custom model,I have mentioned the property as d:text. There is no property of type"d:content:.So the "preview" as well as "View in browser" is not workingas the webpreview is coded for d:content in Alfresco.


<type name="my:document">
<title>My BaseContent </title>
<parent>cm:content</parent>
<properties>
<property name="my:customId">
<title>Custom Id</title>
<type>d:text</type>
</property>
<property name="my:uniqueText">
<title>Unique Text</title>
<type>d:text</type>
</property>
</properties>
</type>

But if  i changed the as mention below,preview and "view in browser" is working fine.

<type name="my:document">
<title>My BaseContent </title>
<parent>cm:content</parent>
<properties>
<property name="my:customId">
<title>Custom Id</title>
<type>d:content</type>
</property>
<property name="my:uniqueText">
<title>Unique Text</title>
<type>d:content</type>
</property>
</properties>
</type>


So can you tell me if there any way to change the code of preview and view in browser for d:text instead of d:content?That can solve my problem.

Thanks,
Sradha

duvals
Champ in-the-making
Champ in-the-making
Hi Sradha,

Did you find a way to overcome this issue?
I encountered the same problem.

Thanks!

sradha
Champ on-the-rise
Champ on-the-rise
Hi  duvals,

No .If you will get some solution,please post it.


Regards,
Sradha