Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Andreas Gehrke 20 posts 44 karma points
    Sep 27, 2010 @ 14:58
    Andreas Gehrke
    0

    DocumentType to contain children of another DocumentType

    Hello.

    Is there any best practices on the naming of a document type that should contain children of another document type, ie an "ArticleList" document type that contains "Article" nodes?

    I have previously named such document types "Articles" and "Article", but I just discovered that this is a VERY bad idea if you want to use Linq 2 Umbraco.

    Im thinking about suffing the list/collection document type with "Collection". In some cases "Database" might also be a good suffix, ie a "ProductDatabase" that contains "Product" nodes. What naming convention do you guys use?

    Thanks,

    Andreas

  • Jonas Eriksson 930 posts 1825 karma points
    Oct 03, 2010 @ 06:05
    Jonas Eriksson
    0

    Hi Andreas,

    I often use the suffix Folder, and using one of the Famfamfam-folder-icons. Nah, plurals aint good... See also http://our.umbraco.org/wiki/reference/umbraco-best-practices

    Regards

    Jonas

  • Andreas Gehrke 20 posts 44 karma points
    Oct 04, 2010 @ 15:21
    Andreas Gehrke
    0

    Hi Jonas.

    Thanks for your reply. I recently discovered the best practices article that you are linking to. Unfortuntely I found this a little late.

    So I guess I can conclude that using a suffix like "Folder" or "List" is a best pratice.

    /Andreas

Please Sign in or register to post replies

Write your reply to:

Draft