cancel
Showing results for 
Search instead for 
Did you mean: 

How to migrate all contents into single page(A bit URGENT)

hithardhas
Champ in-the-making
Champ in-the-making
Hi,

   I splitted one web page as header,Leftnav,rightnav, body and footer(For templating work). For these all i created xsd and related xsl files. My requirement is to include all in one page to see the entire preview. For that i am trying to include all in body part. but i am not.

     Tell me the process how to include all in single page. This is little bit urgent.

Thank you in advance,
Hithardha T
3 REPLIES 3

pmonks
Star Contributor
Star Contributor
There are basically two ways to perform this kind of page compositing:

  1. "Bake" the page at content submission time via a Freemarker or XSLT renditioning template.  We provide APIs in both cases that allow you to pull in other content from the Web Project and include that in the output of the template (see http://wiki.alfresco.com/wiki/WCM_Forms_Rendering#Variables_and_Functions_exposed_to_Rendering_Engin... for details).

  2. "Fry" the page at request time by using delivery side techniques to composite the page from it's constituent assets.  The exact technique depends on your delivery side technology, but includes things like server side includes (web servers), <jsp:include> (Java app servers), <!–#include file="…"–> (ASP.NET), include '…' (PHP), etc.
Note that with the first option it's not possible (in the general case) to track all of the dependencies between the source assets and the final composited page, so you will eventually find yourself having to manually regenerate pages when certain source assets change.  For that reason I personally prefer the latter approach (delivery time page composition), since each page can have arbitrarily complex dependency graphs without anyone ever having to worry about stale content appearing in those pages.

Cheers,
Peter

vijay_alfresco
Champ in-the-making
Champ in-the-making
I think apache tiles would the best solution.

pmonks
Star Contributor
Star Contributor
Yep - Tiles is one example (amongst many!) of the "fry" model (which is the one I tend to favour, given the dependency management problems that can occur with the "bake" model).

Cheers,
Peter