Copied to clipboard

Flag this post as spam?

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


  • tarek 9 posts 30 karma points
    May 03, 2011 @ 12:05
    tarek
    0

    Developper mode

    Hi,

    I've some questions.

    Firstly I want to know if there is a developer mode in umbraco. ie a mode that allows you to test and view the result before publishing it. This is possible in content section by saving the content and not to publish and view it with "Preview" button, but for the developer section when I change (for example) a template, and I want to see the content without publishing it, the problem is that when I click "save" it will change for members. so how do the developer to change and preview before its release to everyone.


    secondly for cshtml in template is there a debug tool? Example for this code

    <umbraco:Macro  runat="server" language="cshtml">
    @inherits umbraco.MacroEngines.DynamicNodeContext
    @{ var numberOfItems = 10; }
    @foreach (var item in @Model.Children.Where("umbracoNaviHide != true").Take(numberOfItems).OrderBy("UpdateDate")) {
        //do nothing
    }
    </umbraco:Macro>

    if I make a mistake (I write "where" instead of "Where") it does not work, how to find and debug this thing.

     

    Finally (ouuuf :D ),  I think this is simple but I don't find the solution.it's how to fill a Dropdown or a Dropdown multiple?... I create a document type "DocTypeName" with a property "color" dropdown multiple, and when I instantiate the document type it give me an empty dropdown multiple , then how to fill it.?

    Tank you very much for your help :)

  • Rich Green 2246 posts 4008 karma points
    May 03, 2011 @ 12:15
    Rich Green
    0

    Hi,

    There is no preview mode for the templates.

    It is more normal (for me at least) to have a development environment, once you're happy with the changes you promote them to your live site.

    Having a development environment allows you to debug too, I suggest you look at WebMatrix (free) there's a good intro video here

    http://umbraco.com/help-and-support/video-tutorials/getting-started/working-with-webmatrix

    Rich

  • Rich Green 2246 posts 4008 karma points
    May 03, 2011 @ 12:17
    Rich Green
    0

    You should really post different questions in different posts, but to answer this:

    "Finally (ouuuf :D ),  I think this is simple but I don't find the solution.it's how to fill a Dropdown or a Dropdown multiple?... I create a document type"DocTypeName" with a property "color" dropdown multiple, and when I instantiate the document type it give me an empty dropdown multiple , then howto fill it.?"

    You add /edit the values in the datatype, go to Developer - Datatypes - add a drop down (or edit one that is already there) you can then add/edit values.

    You can have as many datatypes as you like (so you can have as many drop downs as you like etc.)

    Rich

  • tarek 9 posts 30 karma points
    May 03, 2011 @ 12:44
    tarek
    0

    Thank you Rich, it's so helpful  ^^,

Please Sign in or register to post replies

Write your reply to:

Draft