Developer forum

Forum » Development » Code first default view item page

Code first default view item page

Jesse Bakker
Reply

Hi Guys,

I'm trying to set the default view of an item page to 'paragraphs' . It's a code first itemtype but can't find the correct setting.
It's running on 9.2.16.

What am I missing?  

[Item(Name = "Detail page", Description = "")]
[AreaRule(92, 93)] 
[StructureRule(StructureContextType.Pages)]    
public class DetailPage : ItemEntry
{
//fields
}
	

BR, Jesse


Replies

 
Nicolai Pedersen
Reply

Hi jesse

You code have structure set to page and not paragraph - that could be the issue?

Have a look at the docs - it should have a complete example:

http://doc.dynamicweb.com/api/html/d6a14638-4580-a1c9-3328-09ce262762f1.htm

BR Nicolai

 
Jesse Bakker
Reply

Hi Nicolai,

Thanks for your answer, but that is not really the setting I'm looking for. It should be a page itemtype.

I'm looking for a way to set the dropdown in the attached screenshot. But with the code first way, because it's locked in the management center.

BR, Jesse


 

DefaultViewItemtype.JPG
 
Nicolai Pedersen
Reply

Ah, sorry for not reading thoroughly!

I cannot see that we have an attribute for that setting. Will have it investigated.

BR Nicolai

 
Vladimir
Reply
This post has been marked as an answer

Hi Jesse,

It seems we miss this attribute 

We will add it asap in 9.2 / 9.3 releases.

 

Bestr regards,

Vladimir

Votes for this answer: 1

 

You must be logged in to post in the forum