Copied to clipboard

Flag this post as spam?

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


  • Osman Coskun 170 posts 404 karma points
    Mar 20, 2017 @ 15:07
    Osman Coskun
    0

    Creating new document types on the example project

    Hello,

    I want to create my own document types on the exmaple projects. I created a simple container document type under Master document type. Then gave the permissions and create the node. When i save and publish the document Url previews ar not populated and the link to document displays " This document is published but is not in the cache" in the properties tab.

    I didn't undestand what am i doing wrong.

    Any ideas ?

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Mar 20, 2017 @ 16:42
    Dennis Aaen
    0

    Hi Osman,

    That sound a bit odd. Could you please try to republish the whole site by clicking the "CONTENT" and choose republish the entire site.

    What you also could try to do is delete the file /App_Data/umbraco.xml, in this file you will find all the visible content on the site, and when you do the epublish the entire site, then umbraco.xml file will be re-created.

    I would also recommend you to double check that you have these file and folder permissions. https://our.umbraco.org/documentation/Getting-Started/Setup/Server-Setup/permissions

    Hope this helps,

    /Dennis

  • Osman Coskun 170 posts 404 karma points
    Mar 20, 2017 @ 19:02
    Osman Coskun
    0

    Hi,

    I tried your suggestions. I think it's releated with custon UrlProvider and Content finder of the project. When i comment out the lines that hook MultilingualUrlProvider and MultilingualContentFinder page becomes accessible but language specific urls become unusable.

  • Micha Somers 134 posts 597 karma points
    Mar 20, 2017 @ 18:44
    Micha Somers
    0

    You first need to update your ModelsBuilder model to get in sync with your DocumentTypes.

    If you are using the ModelsBuilder API, you need to run Custom Tool on the file (in the 1-1 multilingual example named Builder.cs), while running the project.

    After that rebuild the project, and run again.

  • Osman Coskun 170 posts 404 karma points
    Mar 20, 2017 @ 18:53
    Osman Coskun
    0

    Can you please provide more information? Unfortunately I'm not a hardcore .net developer, i've limited knowledge :(

  • Micha Somers 134 posts 597 karma points
    Mar 20, 2017 @ 20:57
    Micha Somers
    100

    You can find some nice intro stuff about ModelsBuilder and using the ModelsBuilder API here: http://24days.in/umbraco-cms/2016/getting-started-with-modelsbuilder/

    The section named API Models describes the steps to generate the classes.

  • Osman Coskun 170 posts 404 karma points
    Mar 20, 2017 @ 21:39
    Osman Coskun
    0

    Thanks Micha.

    I've Visual Studio 2017 Community installed and Umbraco ModelsBuilder Custom Tool is not suitable with VS 2017. I'll install VS 2015 and follow the steps on article you suggested.

  • Osman Coskun 170 posts 404 karma points
    Mar 21, 2017 @ 14:02
    Osman Coskun
    1

    Everything is working well. Thank you Micha.

Please Sign in or register to post replies

Write your reply to:

Draft