Zen Follower
- Join Date:
- Jan 2006
- Location:
- Australia
- Posts:
- 303
- Plugin Contributions:
- 0
Sitemap & ezpages integration
Hi all
Previous to v131, I had my info pages listed in my site map tpl_site_map_default.php. this is code from my v1.2.7 site, of course I will obviously be amending the new v1.3.1 file!
code below:
<li><?php echo BOX_HEADING_INFOPAGES; ?></li>
<ul>
<?php
$content = '';
for ($i=1; $i<=sizeof($page_query_list); $i++) {
$content .= '<li><div align="left">';
if($page_query_list[$i]['alt_url'] != '') {
$content .= '<a href="' . zen_href_link($page_query_list[$i]['alt_url'], '', 'NONSSL', true, true, true) . '">' . $page_query_list[$i]['name'] . '</a>';
}
else {
$content .= '<a href="' . zen_href_link(FILENAME_INFOPAGES, 'pages_id=' . $page_query_list[$i]['id']) . '">' . $page_query_list[$i]['name'] . '</a>';
}
$content .= '</div></li>';
}
echo $content;
?>
</ul>
Can anyone tell me what the correct code is to have the new ezpages incorporated into the site map. I am assuming that this can be easily done by amending the above code to reflect ezpages, but I am not sure what the proper name for ezpages is and if there is anything else that I should be placing in the tpl_site_map_default.php
Any help would be appreciated
TIA