Location: PHPKode > scripts > XMap > xmap/smarty-template.subelement.tpl
{php}

/**
  * Readme
  *
  * In this example I assigned a value that will be used to tell what map id will be used.
  */
  global $smarty;
  $smarty->assign("id","browse_python");
{/php}

{xmap file="/projects/smarty/templates/sitemap.xml" assign="sitemap" rule="here" id=$id}
<html>


<head>
        <meta name="description" content="{$sitemap[$id].description}">
        <meta name="keywords"    content="{$sitemap[$id].keywords}">
</head>

<body>
<i>This title below was generated by sitemap.xml file:</i><br>
<h1>{$sitemap[$id].name}</h1>

You're at <a href="{$sitemap[$id].url}">{$sitemap[$id].url}</a><br>
<br>
Here we can download the menu.
<br>
The (menu).tpl file should be open here is: {$sitemap[$id].menu}
</body>
</html>
Return current item: XMap