PDA

View Full Version : fragment layout


Roy
07-Sep-2003, 06:05 PM
Hi

I would like to create two columns for my fragments. I have looked at previous postings that suggest creating a new fragment template. But how do you do this? Could anyone point me in the right direction.

Thanks
Roy

TraceyG
08-Sep-2003, 12:47 PM
Hi Roy,

There may be another way of doing this but we have found this to work:

The principle is to create a fragment called StartTable and a fragment called EndTable. In between the 2 fragments you can insert fragments for each cell in a row. To have mutiple rows you can add a fragment called NewRow.

The fragments of a page might look like...

StartTable
TopLeftCell
TopMiddleCell
TopRightCell
NewRow
BottomLeftCell
BottomMiddleCell
BottomRightCell
EndTable

Resulting in a 2 x 3 cell table.

For the StartTable create a template that only contains NETQUOTEVAR:BROCHURE_TEXT. Select this for the layout of the fragment and set the text to...

!!<
<table width="100%" border="0" cellspacing="10" cellpadding="0">
<tr valign=top>
>!!

For the NewRow use the same template as above and set the text to...

!!<</tr><tr>>!!

For the Endtable the same template as above and set the text to...

!!<</tr></table>>!!

Each of the 6 cells used for the need to use a template which defines a single cell, i.e. make a copy of the required default template then edit the copied template and enclose the HTML of the template with <td> and </td>.

I hope this helps.

Roy
08-Sep-2003, 08:41 PM
Hi TraceyG

Thanks for all your effort in producing your reply.

I will give it a try and let you know how I get on.

Regards.

Roy