smart folder or custom model?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2024 10:56 AM
Hello, currently I have an implementation which consists of a custom model of conList type (conList:letter). It mainly consists of the following properties:
- conList:type: It indicates if the letter is 'letter' or 'book'
- conList:number: The number of the letter or book
- conList: page: It is a numeric value if conList:type is a book or empty if conList:type is a letter
- conList:folder: The noderef of the folder where the actual file in pdf is stored (plus a subfolder with attached files)
I would like to change the model so it is a children of the folder type. So the new model would be folder:letter which would be applied directly to the folder containing the files using the following properties:
- folder:number: The number of the letter or book
It would have a children type called folder:book with the following properties:
- folder:number: The number of the letter or book
- folder: page: Page of the book
Also, I use the model customization so I can make cmis queries through some webscripts.
My question is: Is this good practice? Would I get a better result with smart folders templates? how would you implement it?
- Labels:
-
Alfresco Content Services
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2024 12:56 AM
Hello,
I would suggest to create a content model just for the content.
Create a custom content type which would be the base of all your subtypes e.g. doc:BaseDocType.
All other subtypes like book, letter etc... should inherit the doc:BaseDocType.
There should be minimum properties under the doc:BaseDocType e.g. dococument_ID, doc
ocument_Type etc...
For all other properties create aspects and attach them with the document types wherever needed.
This heirarchy is easily scalable.
Please let me know if you have further qeustions.
Kintu
