The code I currently have is below. The fields in [] are those that are either standard content blocks or custom props.
Any assistance that can be given would be great.
Code: Select all
{php}
global $gCms;
$manager =& $gCms->GetHierarchyManager();
$thisPage = $gCms->variables['page_name'];
$currentNode = &$manager->sureGetNodeByAlias($thisPage);
$nodes = $currentNode->getChildren();
if ($currentNode->hasChildren()) {
echo '<table border="0" cellspacing="0" cellpadding="0"> <thead> <tr> <th>Product code</th><th>Description</th><th>Size</th><th>Unit of sale</th><th></th><th></th> </tr> </thead><tbody>';
foreach ($nodes as $node) {
$content= $node->getContent();
echo "<form>
<form><tr>
<td>[Product_Code]</td>
<td>[Content]</td>
<td>[Product_Size]</td>
<td>[Unit_of_Sale]</td>
<td></td>
<td></td>
</tr></form>";
}
echo "
</tbody>
</table>";
}
{/php}