2013-10-13, 16:32:34
(2013-10-13, 08:01:17)phpman Wrote: I read that it is possibe to create a sitemap with I18N but i can not
find informations what i must do to get a sitemap to implement it into
a sampe page or into the template.
My method (not original, but I don't remember where it came from) to put a Sitemap on a page:
Component 'sitemap':
PHP Code:
<?php
echo '<div id="sitemap"><ul>';
get_i18n_navigation(return_page_slug(),0,99,I18N_SHOW_PAGES);
echo '</ul></div>';
?>
On the page:
Code:
{% sitemap %}
Depends on plugins: I18N Search, DynPages.
I use CSS on the Sitemap page to hide the Sitemap and the custom 404 page in the list.
--
Nick.
Nick.