The first step is to create our template. What do we want our gallery page to look like? We can fill it in with template tags we have already created or with tags we think we will need. Since this is our first bricklayer application we don't have any already created tags so we will have to create our own. The good news is once we have made them we can reuse them other places. Here is one way we might want to make our gallery page.
<html>
<head>
<title>Gallery</title>
<BKmeta />
</head>
<body>
<div>
<BKimage_list action="list_images">
<BKimage_row number="4">
<img src="<BKimage attr="location" />"
alt="<BKimage atr="alt" />" />
</BKimage_row>
</BKimage_list>
</div>
</body>
</html>
Granted this doesn't look like much but it will get across the basic concepts allright. Now that we have our template we need to identify the tasks our gallery will need to do and write an action plugin to do them.
Jeremy Wall
2006-08-21