cancel
Showing results for 
Search instead for 
Did you mean: 

Add a link in the content model

alf983
Champ in-the-making
Champ in-the-making
Can I add a link in the content model?

<?xml version="1.0" encoding="UTF-8"?><model name="my:videomodel" xmlns="http://www.alfresco.org/model/dictionary/1.0">   <description>File Video Model</description>   <author>Alfonso Manzo</author>   <version>1.0</version>     <imports>         <!– Import Alfresco Dictionary Definitions –>         <import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d"/>         <!– Import Alfresco Content Domain Model Definitions –>         <import uri="http://www.alfresco.org/model/content/1.0" prefix="cm"/>   </imports><namespaces>      <!– Define a Namespace for my new definitions –>      <namespace uri="my.video.model" prefix="my"/></namespaces> <aspects>      <aspect name="my:videoClassification">         <title>Dettagli Video File</title>         <properties>            <property name="my:durata">         <title>Durata</title>               <type>d:text</type>            </property>      <property name="my:resolution">         <title>Risoluzione</title>               <type>d:text</type>            </property>      <property name="my:artista">         <title>Artista</title>               <type>d:text</type>            </property>       </properties>      </aspect></aspects></model> ‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍
4 REPLIES 4

kevinr
Star Contributor
Star Contributor
Do you mean an association?

alf983
Champ in-the-making
Champ in-the-making
Hi kevinr.
This is my problem: I have many files in the alf_data directory. This files (video keyframe) have been created by myextracter class when I upload a mpeg content. Now I have to associate this keyframes (.jpg) to the uploaded video.
How can I do that?

I hope that you understand me!!  :cry:


P.S. Keyframes are NOT into the alfresco's repository, they are into the filesystem.

:cry:  :cry:  :cry:  :cry:  :cry:  :cry:  :cry:

kevinr
Star Contributor
Star Contributor
To use Alfresco associations you would need to add the keyframes to the repository.

Another option is to use a custom view based on a FreeMarker template or a WebScript. You could then generate HREF links to your external content assuming they are within the webserver accessable filesystem.

Kevin

alf983
Champ in-the-making
Champ in-the-making
Hi kenvir,
I'm trying with the associations and this is my videomodel.xml

<aspects>      <aspect name="my:videoClassification2">         <title>Dettagli Video File</title>         <properties>            <property name="my:keyframes">         <title>KeyFrames</title>                        <type>d:text</type>         <!— Index content in the background –>               <index enabled="true">                  <atomic>true</atomic>                  <stored>false</stored>                  <tokenised>true</tokenised>               </index>            </property>      </properties>     <associations>            <child-association name="my:frame">         <source>         <mandatory>false</mandatory>         <many>true</many>        </source>                <target>                  <class>cm:content</class>                  <mandatory>false</mandatory>                  <many>true</many>               </target>            </child-association>      </associations>    </aspect>‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍

What is the procedure to upload the keyframes in Alfresco and how do I match them to a video?
Can you give me an example please? Smiley Sad