<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    My thoughts exactly, but when importing all xml steps from
    portal_setup:<br>
    <span class="Apple-style-span" style="border-collapse: separate;
      color: rgb(0, 0, 0); font-family: Times; font-style: normal;
      font-variant: normal; font-weight: normal; letter-spacing: normal;
      line-height: normal; orphans: 2; text-align: -webkit-auto;
      text-indent: 0px; text-transform: none; white-space: normal;
      widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing:
      0px; -webkit-border-vertical-spacing: 0px;
      -webkit-text-decorations-in-effect: none;
      -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;
      font-size: medium; ">ValueError: undefined property
      'default_site_layout'<br>
      <br>
      Getting same error when referencing from IPageFTI<br>
      The default_site_layout is defined in the XML<br>
      <br>
      <br>
      Maarten<br>
      <br>
    </span><br>
    On 7/21/11 8:13 PM, Martin Aspeli wrote:
    <blockquote
cite="mid:CAPN0AAQDPf-PnXsumxOXSF_D8Spqs7PK1wj0cknO=1bzzZXigw@mail.gmail.com"
      type="cite">
      <pre wrap="">On 21 July 2011 13:17, Maarten Kling <a class="moz-txt-link-rfc2396E" href="mailto:maarten@fourdigits.nl"><maarten@fourdigits.nl></a> wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">lets try again :)
I like to create a new type called Person for use in deco, based on the Page
type.

There is a way of doing this by hand:
<a class="moz-txt-link-freetext" href="http://localhost:8080/Plone/@@deco-controlpanel#fieldsetlegend-page-types">http://localhost:8080/Plone/@@deco-controlpanel#fieldsetlegend-page-types</a>
- click Add
<a class="moz-txt-link-freetext" href="http://localhost:8080/Plone/@@add-page-type?form.button.AddPageType=Add">http://localhost:8080/Plone/@@add-page-type?form.button.AddPageType=Add</a>
- name it Person
Looking at: <a class="moz-txt-link-freetext" href="http://localhost:8080/Plone/dexterity-types">http://localhost:8080/Plone/dexterity-types</a>
There are now 2 types, one called Page, and the second called Person.

When i add a field to the Person type:
<a class="moz-txt-link-freetext" href="http://localhost:8080/Plone/dexterity-types/person/@@add-field">http://localhost:8080/Plone/dexterity-types/person/@@add-field</a>
It is also added to the Page type and that is something i don't want.

When i create a new type in code i'm not able to inherit it from the
Page(FTI) type.
Module plone.app.page.content, line 34, in setDefaultLayoutForNewPage
ValueError: Cannot find layout template for person
</pre>
      </blockquote>
      <pre wrap="">
If you're doing this on the filesystem, I would:

 - Create a new schema that derives from IPage and has your new field(s)
 - Copy the FTI XML for the 'person' type you created in the steps above
 - Change the reference to the IPage schema to be your new IPerson schema

Martin
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Maarten Kling
<a class="moz-txt-link-freetext" href="http://fourdigits.nl/mensen/maarten-kling">http://fourdigits.nl/mensen/maarten-kling</a>

Four Digits BV
<a class="moz-txt-link-freetext" href="http://www.fourdigits.nl">http://www.fourdigits.nl</a>
Willemsplein 44, 6811 KD, Arnhem
tel: +31 (0)26 4422700 fax: +31 (0)84 2206117
KVK 091621370000 BTW 8161.22.234.B01 </pre>
  </body>
</html>