HOWTO: Apply a layout to a HTML page using the LayoutWebService
Introduction
This guide describes how to link layouts to HTML pages through the LayoutWebService.
Layouts can be linked through the public web service at http://www.x1seven.com/projekts/bamboo/layoutservice.
Suitable For
- Languages: all (.NET, J2EE, PHP, ColdFusion, Perl, CGI, etc)
- Site types: public (if using the public web service); internal / intranet, private (if using a local installation of the web service
Guide
- Create a HTML page that contains a <div> element for each region named with an id attribute.
- Create your Bamboo layout definition and save it to file in your web source-tree as a *.layout file. (Note saving your layout to file is optional but recommended).
- In your HTML page, add a <script> element to link in the layout through the LayoutWebService. The following example For example:
<script language="javascript"
src="http://www.x1seven.com/projekts/bamboo/1.0/layoutservice?
lu=http://myhost.com/layouts/my.layout"></script>
- The LayoutWebService will intervene and generate JavaScript for your layout and stream it to your browser.
See Also









