Problems with installation of related documents plugin (noob)

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Problems with installation of related documents plugin (noob)

Predrag Karic
This post was updated on .
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: Problems with installation of related documents plugin (noob)

Frank van Lankvelt
It appears that you've added the relateddocs node directly under editor:templates, instead of editor:templates/_default_.

Also, the hipposysedit:supertypes property does not have the same types as the cnd; instead of hippoproject:basedocument, you use hippo:document, hippostd:publishable etcetera.  Either option is fine, but mixing them might lead to unexpected results.

cheers, Frank

On Fri, Apr 16, 2010 at 3:42 PM, Predrag Karic <[hidden email]> wrote:

Hi,

I have some issues with related documents plugin, so if somebody can give me
advice.

Archetype used for project : mvn archetype:generate\
          -DarchetypeRepository=<a href="http://repository.hippocms.org/maven2\" target="_blank">http://repository.hippocms.org/maven2\
          -DarchetypeGroupId=org.onehippo.ecm.archetypes\
          -DarchetypeArtifactId=website\
          -DarchetypeVersion=1.01.00

I used instruction from link :
http://relateddocs.forge.onehippo.org/install.html

Build application with added repository to pom.xml and dependency to
cms/pom.xml

In hippo:namespace I have hippoproject with nodes of my defined document
types news article, book review and moview review. I exported
hippoproject.cnd

<'hippo'='http://www.onehippo.org/jcr/hippo/nt/2.0.1'>
<'hippoproject'='http://www.hippoecm.org/hst/nt/hippoproject/1.2'>
<'hippostd'='http://www.onehippo.org/jcr/hippostd/nt/2.0'>
<'hippostdpubwf'='http://www.onehippo.org/jcr/hippostdpubwf/nt/1.0'>

[hippoproject:basedocument] > hippo:document, hippostd:publishableSummary,
hippostdpubwf:document

[hippoproject:bookreview] > hippoproject:basedocument
 - hippoproject:title (string)

[hippoproject:textdocument] > hippoproject:basedocument
 - hippoproject:title (string)
 - hippoproject:summary (string)
 + hippoproject:body (hippostd:html)

[hippoproject:testtwo] > hippoproject:basedocument
 - hippoproject:titlenew (string)
 + hippoproject:hippo_mirror (hippo:mirror)

[hippoproject:test] > hippoproject:basedocument
 - hippoproject:string (string)

[hippoproject:moviereview] > hippoproject:basedocument
 - hippoproject:title (string)

[hippoproject:newsarticle] > hippoproject:basedocument
 - hippoproject:title (string)

and added here on top

<relateddocs='http://forge.onehippo.org/relateddocs/nt/1.1'>

and added relateddocs:relatabledocs

[hippoproject:moviereview] > hippoproject:basedocument ,
relateddocs:relatabledocs
 - hippoproject:title (string)

[hippoproject:bookreview] > hippoproject:basedocument ,
relateddocs:relatabledocs
 - hippoproject:title (string)

and (hippo:namespace selected) imported hippoproject.cnd

then I exported xml /hippo:namespaces/hippoproject  in hippoproject.xml I
added snippet :



<sv:node sv:name="moviereview">
<sv:property sv:name="jcr:primaryType" sv:type="Name">
<sv:value>hipposysedit:templatetype</sv:value>
</sv:property>
<sv:property sv:name="jcr:mixinTypes" sv:type="Name">
<sv:value>mix:referenceable</sv:value>
<sv:value>editor:editable</sv:value>
</sv:property>
<sv:property sv:name="jcr:uuid" sv:type="String">
<sv:value>0b91647a-03a6-4979-a4e9-6bdb1d32c2d2</sv:value>
</sv:property>
<sv:node sv:name="hipposysedit:nodetype">
<sv:property sv:name="jcr:primaryType" sv:type="Name">
<sv:value>hippo:handle</sv:value>
</sv:property>
<sv:property sv:name="jcr:mixinTypes" sv:type="Name">
<sv:value>hippo:hardhandle</sv:value>
</sv:property>
<sv:property sv:name="jcr:uuid" sv:type="String">
<sv:value>1792417c-483b-4037-8bf5-50dd037ffef0</sv:value>
</sv:property>
<sv:property sv:name="hippo:supertype" sv:type="String">
<sv:value>hippo:document</sv:value>
<sv:value>hippostd:publishable</sv:value>
<sv:value>hippostd:publishableSummary</sv:value>
<sv:value>relateddocs:relatabledocs</sv:value>
</sv:property>
<sv:node sv:name="hipposysedit:nodetype">
<sv:property sv:name="jcr:primaryType" sv:type="Name">
<sv:value>hipposysedit:nodetype</sv:value>
</sv:property>
<sv:property sv:name="jcr:mixinTypes" sv:type="Name">
<sv:value>hippo:harddocument</sv:value>
<sv:value>hipposysedit:remodel</sv:value>
</sv:property>
<sv:property sv:name="jcr:uuid" sv:type="String">
<sv:value>f732520a-6751-4cdd-a9a2-cb3295149438</sv:value>
</sv:property>
<sv:property sv:name="hippo:paths" sv:type="String">
<sv:value>f732520a-6751-4cdd-a9a2-cb3295149438</sv:value>
<sv:value>1792417c-483b-4037-8bf5-50dd037ffef0</sv:value>
<sv:value>0b91647a-03a6-4979-a4e9-6bdb1d32c2d2</sv:value>
<sv:value>b312ddb6-404d-4c00-8593-1da95de3f806</sv:value>
<sv:value>74bebaa8-d277-4890-bff7-dd5ba8a0361f</sv:value>
<sv:value>cafebabe-cafe-babe-cafe-babecafebabe</sv:value>
</sv:property>
<sv:property sv:name="hippo:related___pathreference" sv:type="String"/>
<sv:property sv:name="hipposysedit:node" sv:type="Boolean">
<sv:value>true</sv:value>
</sv:property> ...

same snippet I added for bookreview node. Then I added here

<sv:node sv:name="editor:templates">
           <sv:property sv:name="jcr:primaryType" sv:type="Name">
               <sv:value>editor:templateset</sv:value>
           </sv:property>
          <sv:node sv:name="relateddocs">
              <sv:property sv:name="jcr:primaryType" sv:type="Name">
                  <sv:value>frontend:plugin</sv:value>
               </sv:property>
              <sv:property sv:name="caption" sv:type="String">
                  <sv:value>Related documents</sv:value>
               </sv:property>
              <sv:property sv:name="engine" sv:type="String">
                  <sv:value>${engine}</sv:value>
               </sv:property>
              <sv:property sv:name="mode" sv:type="String">
                  <sv:value>${mode}</svvalue>
               </sv:property>
              <sv:property sv:name="plugin.class" sv:type="String">

<sv:value>org.onehippo.forge.relateddocs.editor.RelatedDocsPlugin</sv:value>
               </sv:property>
              <sv:property sv:name="template.size" sv:type="String">
                  <sv:value/>
               </sv:property>
              <sv:property sv:name="wicket.id" sv:type="String">
                  <sv:value>${cluster.id}.field</sv:value>
               </sv:property>
              <sv:property sv:name="search.paths" sv:type="String">
                  <sv:value>/content/documents/myproject</sv:value>
               </sv:property>
              <sv:property sv:name="wicket.model" sv:type="String">
                  <sv:value>${wicket.model}</sv:value>
               </sv:property>
              <sv:property sv:name="browser.id" sv:type="String">
                  <sv:value>service.browse</sv:value>
               </sv:property>
           </sv:node>
           <sv:node sv:name="_default_"> ...

fix the </svproperty> to  </sv:property>, </svvalue> to </sv:value> and
</svnode> to </sv:node>

Select hippo:namespace in console and import hippoproject.xml (default
values in drop downs for import). I made error on </svvalue> left during
import show me message,I fixed it and import again but it don't work. I
cannot see the related part when I edit the document type newsarticle.

Hippo:template from installation procedure caused confusion to me. Can you
suggest how to solve this problem ? Because I left without ideas. Thanks.
--
View this message in context: http://n2.nabble.com/Problems-with-installation-of-related-documents-plugin-noob-tp4913088p4913088.html
Sent from the Plugin Development and Customization mailing list archive at Nabble.com.
_______________________________________________
Hippo-cms7-user mailing list and forums
http://www.onehippo.org/cms7/support/forums.html


_______________________________________________
Hippo-cms7-user mailing list and forums
http://www.onehippo.org/cms7/support/forums.html
Reply | Threaded
Open this post in threaded view
|

Re: Problems with installation of related documents plugin (noob)

Predrag Karic
This post was updated on .
CONTENTS DELETED
The author has deleted this message.