Copied to clipboard

Flag this post as spam?

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


  • Sa 118 posts 152 karma points
    Sep 23, 2009 @ 08:46
    Sa
    0

    DocumentTypes Storage

    where the documentTypes or contentTypes will be saved ?

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Sep 23, 2009 @ 08:50
    Dirk De Grave
    0

    Hi sas7,

     

    document types and content types (which are essentially the same - unless you mean media types) are saved as nodes in the umbraco database.

    Any specific info you need?

     

    Cheers,

    /Dirk

  • Sa 118 posts 152 karma points
    Sep 23, 2009 @ 09:02
    Sa
    0

    yeah thanks.,

    where can i find umbraco database?

  • Rich Green 2246 posts 4008 karma points
    Sep 23, 2009 @ 09:22
    Rich Green
    0

    Take a look at the 'web.config' file, search for the 'umbracoDbDSN' string, this will point to your database. 

  • Richard Soeteman 4046 posts 12899 karma points MVP 2x
    Sep 23, 2009 @ 10:00
    Richard Soeteman
    0

    Hi,

    If you want to use it in code I recommend using the API to get info about the content/doument types. Below you find some snippets. Make sure you have references to the umbraco, businesslogic and cms DLL's

    umbraco.cms.businesslogic.web.

    DocumentType dt = umbraco.cms.businesslogic.web.DocumentType.GetByAlias("[the alias]");

    umbraco.cms.businesslogic.

    ContentType ct = umbraco.cms.businesslogic.ContentType.GetByAlias("[the alias]");

     

     Hope it helps you,

    Richard

Please Sign in or register to post replies

Write your reply to:

Draft