3 Replies Latest reply: Oct 9, 2012 11:48 AM by 655526 RSS

    Diff between Page,Template, CSElement and Site Entry Asset Types?

    655526
      Hi,
      When i was going through the developers guide i came across the Built in Asset types Page, Template, CSElement and Site Entry. I am not able to correlate the difference between these 4 Assets.
      Could somebody explain this in detail? Appreciate you effort.

      regards
      Sri
        • 1. Re: Diff between Page,Template, CSElement and Site Entry Asset Types?
          Dolf Dijkstra-Oracle
          An asset is a content-item, the data structure that editors work with and can workflow, publish and have rendered on the live site.

          A Page is an assettype that can be put in a navigation structure (the site plan tree). It holds references to the content on a web page. The Page asset is the only assetype that can be put in this navigational structure.
          A Template is a wrapper around a piece of code to render an asset.
          A CSElement is a wrapper around a piece of code that by convention does something else than render an asset. You can see them as helper functions.
          A SiteEntry is a pointer to a CSElement so you can call that code externally through a URL. A Template (technically) combines a CSElement and a SiteEntry. The is more complexity to this, especially around caching, but for now this give you some indication of the high level differences.
          The code part of a CSElement and a Template is in most cases implemented in a JSP page.

          Any (most) assets can be rendered with a Template, the template produces the html for this asset, for instance that the image should be placed left of the body text.

          To follow the call flow: a browser makes a request to the Sites servlet, this servlet decides based on the 'pagename' request parameter which Template to execute. This Template decides on the request parameters 'c' and 'cid' which assetid and assettye to render and the template will then create the html and call other Templates for related assets and CSElements to complete the html page.

          Dolf
          • 2. Re: Diff between Page,Template, CSElement and Site Entry Asset Types?
            user468392
            Very simple and helpful. Thanks Dolf!
            • 3. Re: Diff between Page,Template, CSElement and Site Entry Asset Types?
              655526
              Hi Dolf,
              Thanks a lot for your reply.

              regards
              Sri