Link vs Compound

22 views
Skip to first unread message

sdmor...@gmail.com

unread,
Dec 19, 2014, 8:46:01 PM12/19/14
to hippo-c...@googlegroups.com
I need to add some fields that are going to be used by 4 documents, what is the best practice?:

1. Create a compound component and embedded into each document

OR

2. Add Links to the documents that points to other type of document that was created to handle all fields needed

Thank you

Tobias Jeger

unread,
Dec 20, 2014, 6:04:29 AM12/20/14
to hippo-c...@googlegroups.com
Hi,

I guess the answer really depends on your actual use case.

The compound solution is kind of the normal thing to do, and it means that you have a 1-to-1 (or even a 1-to-many) relation between your document and your "group of fields", each instance of the compound is embedded within a document and only available there. If you want to share a certain instance of your group of fields between multiple documents (f.e. a group of category related fields that apply to multiple product documents), you can avoid duplication of content by creating a separate document type to hold your group of fields. Note that a separate document type comes at the price of higher complexity for the CMS user, as you now have to deal with two separate documents, which are edited and published individually.

When you find that the compound is the way to go, and your document needs to contain no more than one instance of the group of fields, you should also weigh the benefits of a compound (code and configuration reuse) against its disadvantages, such as [1], or not being able to use faceted navigation on fields of your field group [2].

hope this helps

Tobi




--
Hippo Community Group: The place for all discussions and announcements about Hippo CMS (and HST, repository etc. etc.)
 
To post to this group, send email to hippo-c...@googlegroups.com
RSS: https://groups.google.com/group/hippo-community/feed/rss_v2_0_msgs.xml?num=50
---
You received this message because you are subscribed to the Google Groups "Hippo Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hippo-communi...@googlegroups.com.
Visit this group at http://groups.google.com/group/hippo-community.
For more options, visit https://groups.google.com/d/optout.



--
Amsterdam - Oosteinde 11, 1017 WT Amsterdam
Boston - 101 Main Street, Cambridge, MA 02142

US +1 877 414 4776 (toll free)
Europe +31(0)20 522 4466
www.onehippo.com
Reply all
Reply to author
Forward
0 new messages