diff --git a/ccm-cms-types-person/pdl/com/arsdigita/content-types/Person.pdl b/ccm-cms-types-person/pdl/com/arsdigita/content-types/Person.pdl index d06f0af1e..88d798016 100644 --- a/ccm-cms-types-person/pdl/com/arsdigita/content-types/Person.pdl +++ b/ccm-cms-types-person/pdl/com/arsdigita/content-types/Person.pdl @@ -1,8 +1,8 @@ model com.arsdigita.cms.contenttypes; -import com.arsdigita.cms.ContentItem; +import com.arsdigita.cms.ContentPage; -object type Person extends ContentItem { +object type Person extends ContentPage { String[0..1] surname = ct_persons.surname VARCHAR(512); String[0..1] givenname = ct_persons.givenname VARCHAR(512); String[0..1] titlepre = ct_persons.titlepre VARCHAR(256); diff --git a/ccm-cms-types-person/src/com/arsdigita/cms/contenttypes/Person.java b/ccm-cms-types-person/src/com/arsdigita/cms/contenttypes/Person.java index 4f8c64d3c..a39d4d1d5 100644 --- a/ccm-cms-types-person/src/com/arsdigita/cms/contenttypes/Person.java +++ b/ccm-cms-types-person/src/com/arsdigita/cms/contenttypes/Person.java @@ -6,7 +6,7 @@ package com.arsdigita.cms.contenttypes; import com.arsdigita.cms.ContentType; -import com.arsdigita.cms.ContentItem; +import com.arsdigita.cms.ContentPage; import com.arsdigita.domain.DataObjectNotFoundException; import com.arsdigita.persistence.DataObject; import com.arsdigita.persistence.OID; @@ -18,8 +18,9 @@ import java.math.BigDecimal; * * @author Jens Pelzetter */ -public class Person extends ContentItem { +public class Person extends ContentPage { + public static final String PERSON = "person"; public static final String SURNAME = "surname"; public static final String GIVENNAME = "givenname"; public static final String TITLEPRE = "titlepre"; diff --git a/ccm-cms-types-person/src/com/arsdigita/cms/contenttypes/PersonInitializer.java b/ccm-cms-types-person/src/com/arsdigita/cms/contenttypes/PersonInitializer.java index 822ae2bf2..4aa9f875d 100644 --- a/ccm-cms-types-person/src/com/arsdigita/cms/contenttypes/PersonInitializer.java +++ b/ccm-cms-types-person/src/com/arsdigita/cms/contenttypes/PersonInitializer.java @@ -35,6 +35,6 @@ public class PersonInitializer extends ContentTypeInitializer { } public String[] getStylesheets() { - return new String[] { "" }; + return new String[] { "/static/content-types/com/arsdigita/cms/contenttypes/Person.xsl" }; } }