3 Replies Latest reply: Mar 4, 2013 2:38 AM by Nelash Jindal RSS

    asset type and page definition and template

    RajendarRaj
      Hi,
      I'm working with webcenter sites 11gR1..
      I've create a basic asset type how to use that asset type.
      what is the order of creating asset type ,page definition and template.

      could someone explain me the process with small sample.

      Thanks and Regards
      Rajendar
        • 1. Re: asset type and page definition and template
          Nelash Jindal
          Hi Rajendra,

          For creating a basic asset type, firs you to crate a xml file that defines your attribute and its type. Then go to ADMIN --> AssetMaker and upload your xml and save it.
          you basic assettype will be created. Then you have to enable it for you site before using it.

          In case of flex asset type, first you have to create flex attribute, then parent definition, the asset definition, then create a parent(not mandatory), then create an asset.

          Once you are ready with the asset, then you can create template accordingly.

          Thanks,
          Nelash Jindal
          • 2. Re: asset type and page definition and template
            RajendarRaj
            Hi Nelash,
            Thanks for your response.
            what is the role of "page defination"?
            and could you explain me how to link asset type and template.

            for example.

            <ASSET NAME="emp1" DESCRIPTION="employee" PROCESSOR="4.0" DEFDIR="c:\FutureTense\Storage\Application">
            <PROPERTIES>
            <PROPERTY NAME="empno" DESCRIPTION="empno">
            <STORAGE TYPE="INTEGER" LENGTH="10"/>
            <INPUTFORM TYPE="TEXT" DESCRIPTION="text"/>
            <SEARCHFORM TYPE="TEXT" DESCRIPTION="text"/>
            <SEARCHRESULTS INCLUDE="TRUE"/>
            </PROPERTY>
            <PROPERTY NAME="ename" DESCRIPTION="ename">
            <STORAGE TYPE="VARCHAR" LENGTH="30"/>
            <INPUTFORM TYPE="TEXT" DESCRIPTION="text"/>
            <SEARCHFORM TYPE="TEXT" DESCRIPTION="text"/>
            <SEARCHRESULTS INCLUDE="true"/>
            </PROPERTY>
            <PROPERTY NAME="job" DESCRIPTION="job">
            <STORAGE TYPE="VARCHAR" LENGTH="36"/>
            <INPUTFORM TYPE="TEXT" DESCRIPTION="text"/>
            <SEARCHFORM TYPE="TEXT" DESCRIPTION="text"/>
            <SEARCHRESULTS INCLUDE="true"/>
            </PROPERTY>
            </PROPERTIES>
            </ASSET>



            Thank you
            Rajendar.
            • 3. Re: asset type and page definition and template
              Nelash Jindal
              Hi,

              When ever you want to create a page asset, then what attribute should be their in that page are defined in page definition. So, You have to have a page definition before creating any page asset.

              There is not direct link b/w a asset type and a template. In your case. when you will create an asset of type employee, at that time it will ask you to choose a template and that will be stored in db table along with asset name.


              Thanks,
              Nelash Jindal