0
votes

Anyone had any luck with this?

I'm using 9.04.01 on DNN 9.

There doesn't appear to be a way to add a question unlike it's previous version. The previous version had a + sign in the menu on the right to add a new question. This version doesn't. Is there a different way to add questions in this version?

Images http://robertveale.com/

Thanks.

1

1 Answers

0
votes

You actually ran into something different. Please check http://2sxc.org/en/blog/post/12-differences-when-templating-data-instead-of-content to understand this

Your first view shows a list of content-assigned-to-the-module so you have the inline +.

The second view shows a list querying the DB, so hitting + wouldn't add it below that but anywhere else, so it's not part of the item-toolbar. If you need a + on the query-view, then the most common solution is to provide a separate + button - see for example how the blog-app does it here: https://github.com/2sic/app-blog/blob/master/_1%20Main%20blog%20view.cshtml#L24-L38

@* toolbar for add / manage posts *@
@Edit.Toolbar(toolbar: new object[] { 
    new { 
        command = new { 
            action = "new", 
            contentType = "BlogPost"
        } 
    },
    new { 
        command = new { 
            action = "contentitems", 
            contentType = "BlogPost"
        },
        showCondition = true
    }
}, settings: new { hover="left", show = "hover" })