Add a link in the content model
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2008 11:18 AM
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>
Labels:
- Labels:
-
Archive
4 REPLIES 4

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2008 01:05 PM
Do you mean an association?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2008 01:33 PM
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:
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:

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2008 08:30 AM
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
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2008 05:36 AM
Hi kenvir,
I'm trying with the associations and this is my videomodel.xml
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?
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?

