cancel
Showing results for 
Search instead for 
Did you mean: 

Need to create a new content type, or what???

mgborras
Champ in-the-making
Champ in-the-making
Hi all, i have to create a new content called "GDR" whit the next properties:

<NDoc>
<NIF>
<ApNOM>
<LEmis>
<FEmis>
<CodTerr>
<Est>
<FEst>

I have read too much about how to create the new type, but i cant do it…plz help me to create this one….i'm really desperate…
4 REPLIES 4

raquelcasaus
Champ in-the-making
Champ in-the-making
Have you insert into your custom model a content like this?

<type name="my:GDR">
    <title>GDR</title>
    <parent>cm:content</parent>
    <properties>
        <property name="my:NDoc">
               <type>d:text</type>
        </property>
        <property name="my:NIF">
               <type>d:text</type>
        </property>
        <property name="my:ApNOM">
               <type>d:text</type>
        </property>
        <property name="my:LEmis">
               <type>d:text</type>
        </property>
        <property name="my:FEmis">
               <type>d:text</type>
        </property>
        <property name="my:CodTerr">
               <type>d:text</type>
        </property>
        <property name="my:Est">
               <type>d:text</type>
        </property>
        <property name="my:FEst">
               <type>d:text</type>
        </property>
    </properties>
</type>

Regars, Raquel.

mgborras
Champ in-the-making
Champ in-the-making
thanks a lot for your help raquel…

raquelcasaus
Champ in-the-making
Champ in-the-making
You're welcome.

Don't forget to include your new type into web-client-config-custom.xml file.

Regards, Raquel.

mgborras
Champ in-the-making
Champ in-the-making
realy apreciate your help, raquel…e need to do another thing….i've an XML doc in a folder, and with some properties (like this):

  <NDoc>4011000050364</NDoc>
  <NIF>75739998D</NIF>
  <NApell>DIAZ PEREZ AGUSTIN</NApell>
  <LEmis>0111-SPRyGT ALCALA GAZULES O.P. (ALCALA DE LOS GAZ</LEmis>
  <FEmis>20061201</FEmis>
  <Tit>Impuesto sobre Bienes Inmuebles Naturaleza URBANA</Tit>
  <CTerr>RE2301</CTerrl>
  <Est>A</Est>
  <FEst>20061201</FEst>

What can I read this XML to parse it into another doc properties??? The two doc have the same name….plz help me…